Turn a directory structure into JSON for whatever.
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
lib
LICENSE
okjson.php
readme.md

readme.md

OKJson

OKJson turns a regular old directory structure on a server into JSON. This is quite useful for single page JavaScript applicaitons that need to be managed without a database.

Usage

Once you have downloaded OKJson you may require it like so:


require_once(__DIR__ . "lib/okjson.php"); // or wherever it is on your filesystem\

After you have required OKJson you initialize it like this:


$okjson = new OKJson(__DIR__);

Now you can put JSON anywhere in your application with ease:


echo $okjson->to_json();

Be sure to check out the example.

LICENSE

MIT