PHP Flat File Database Manager
MDB it’s a lightweight database manager with flexibility and easy to use. allow create, read, update and delete: database, tables, columns and rows that are saved as JSON files (CRUD). Has two methods to store collections of data: single documents per each item and chunks of JSON with any items you want.
This is a new documentation, MaricutoDB still working well with previus versions
https://github.com/Yerikmiller/maricutodb/blob/59ce856cab3c2502dcb6800dce3b5f00cbcc1abd/README.md
Create collections of data easily.
To start using the Database only require:
require_once "init.php"; # in MaricutoDB folder
Modify time zone in init.php
Timezone is used to created json files and time fields.
$GLOBALS['timezone'] = 'America/Caracas'; // change this to whatever you want.
$mdb = new mdb();
// create
$user = $mdb->documents("users")->create("user_1", [
"name" => "Louis"
]);
// show $user.
var_dump($user);
// update with new user
$user = $mdb->documents("users")->create("user_2", [
"name" => "Sam"
]);
// get all users
$users = $mdb->documents("users")->get()->all();
// show all
var_dump($users);
This project is licensed under the MIT License.
https://github.com/Yerikmiller/maricutodb/blob/master/LICENSE
About Author: https://maricuto.website