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.
It's lightweight and hard to overload the system
can manage up to 200.000 items per collection like users, news, etc...
Create, Read, Update and delete data easily.
Don't require any schema for filters or queries
Dependency Free
Sort the data from new to old and old to new.
Sort the data in a alphabetical and numerical way.
easy paginator and filter system.
store passwords with encrypt method
Backup and restore collections
single documents method to create single documents with data
chunk items into files with the collection method.
create subcollections inside fields.
delete Database with backup System.
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);
New helper methods to learn MDB easily
Any deprecated method still working.
Temp files generator to avoid error on editing ('updates' are made it in a temp file first).
Custom filter methods & new paginator.
This project is licensed under the MIT License. https://github.com/Yerikmiller/maricutodb/blob/master/LICENSE
About Author: https://maricuto.website