https://github.com/yerikmiller/maricutodb
PHP Flat File Database Manager
https://github.com/yerikmiller/maricutodb
crud database-management database-schema files flat-file json key-value-store maricuto maricutodb nosql php php7 search-engine storage-engine
Last synced: 12 months ago
JSON representation
PHP Flat File Database Manager
- Host: GitHub
- URL: https://github.com/yerikmiller/maricutodb
- Owner: Yerikmiller
- License: mit
- Created: 2018-08-26T01:04:50.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-12-10T01:05:17.000Z (over 4 years ago)
- Last Synced: 2025-06-22T11:07:00.167Z (12 months ago)
- Topics: crud, database-management, database-schema, files, flat-file, json, key-value-store, maricuto, maricutodb, nosql, php, php7, search-engine, storage-engine
- Language: PHP
- Homepage: http://maricuto.xyz/maricutodb
- Size: 268 KB
- Stars: 27
- Watchers: 2
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
MDB | 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.
#### Previus version readme:
**This is a new documentation, MaricutoDB still working well with previus versions**
https://github.com/Yerikmiller/maricutodb/blob/59ce856cab3c2502dcb6800dce3b5f00cbcc1abd/README.md
MDB | Features
---------------------
*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.
Getting Started
---------------------
To start using the Database only require:
```php
require_once "init.php"; # in MaricutoDB folder
```
Modify time zone in init.php
Timezone is used to created json files and time fields.
```php
$GLOBALS['timezone'] = 'America/Caracas'; // change this to whatever you want.
```
##### You're ready to start
##### Basic Example
```php
$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 Feataures | added at 2021-10-15
---------------------
- 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.
### - Documentation
License
---------------------
This project is licensed under the MIT License.
https://github.com/Yerikmiller/maricutodb/blob/master/LICENSE
About Author: https://maricuto.website