xolf/io-db

File Database

0.0.7 2018-02-17 17:04 UTC

This package is not auto-updated.

Last update: 2024-04-27 17:09:15 UTC


README

Build Status

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);