Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codewithsushil/json-db
JSON DB for APIs Testing and minimalist project
https://github.com/codewithsushil/json-db
json-api json-database json-db json-server
Last synced: 1 day ago
JSON representation
JSON DB for APIs Testing and minimalist project
- Host: GitHub
- URL: https://github.com/codewithsushil/json-db
- Owner: CodeWithSushil
- License: mit
- Created: 2025-01-20T01:45:57.000Z (10 days ago)
- Default Branch: master
- Last Pushed: 2025-01-27T10:31:04.000Z (3 days ago)
- Last Synced: 2025-01-27T11:42:27.681Z (3 days ago)
- Topics: json-api, json-database, json-db, json-server
- Language: PHP
- Homepage:
- Size: 50.8 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
## json-db
- JSON DB for APIs Testing for Your Minimalist Project### Example
Full example of json db
```phprequire "vendor/autoload.php";
use App\JSONDatabase;
$path = 'data/users.json';
$db = new JSONDatabase($path);
$data = [
'id' => 1,
'name' => 'Sushil',
'age' => 23,
'dev' => true,
'lang' => ['php','javascript','sql']
];// post data
$db->write($data);// fetch data
$result = $db->read();echo "
";";
print_r($result);
echo "```