Download the PHP package philwc/jsondb without Composer
On this page you can find all versions of the php package philwc/jsondb. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download philwc/jsondb
More information about philwc/jsondb
Files in philwc/jsondb
Download philwc/jsondb
More information about philwc/jsondb
Files in philwc/jsondb
Vendor philwc
Package jsondb
Short Description Database using json
License MIT
Homepage https://github.com/philwc/JsonDB
Package jsondb
Short Description Database using json
License MIT
Homepage https://github.com/philwc/JsonDB
Please rate this library. Is it a good library?
Informations about the package jsondb
JSON DB
"Handle JSON-Files like a very, very simple DB. Useful for little ajax applications."
Example
test.json
[
{"ID": 0, "Name": "Josef Brunzer", "Age": 43},
{"ID": 1, "Name": "Harald Beidlpraka", "Age": 34},
{"ID": 2, "Name": "Heinz Goschnfuada", "Age": 67},
{"ID": 3, "Name": "Gerald Ofnsacka", "Age": 43}
]
test.php
require '../vendor/autoload.php';
$db = new \philwc\JsonDB('./data/');
$result = $db->select('test', 'Age', 43);
var_dump($result);
result:
Method Overview
If you use only one json file to store data, you can also use the JsonTable
Class:
In this case, you don't have always to specify the table name.
Tests are located in /tests. Run phpunit
to run.
All versions of jsondb with dependencies
PHP Build Version
Package Version
No informations.
The package philwc/jsondb contains the following files
Loading the files please wait ....