xolf / io-db
File Database
0.0.7
2018-02-17 17:04 UTC
This package is not auto-updated.
Last update: 2025-01-04 21:08:48 UTC
README
io-db
Easy setup within 30 seconds: composer require xolf/io-db
A static json database system
Fetch documents from the database
$user = $io->table('user')->document('admin'); echo $user->name;
Write to documents
$user = $io->table('user')->document('admin')->write(['password' => 123456]); echo $user->name . ' Password: ' . $user->password;
Find Documents
$users = $io->table('user')->documents()->where(['rights' => 'admin']); var_dump($users);