https://github.com/xtlsoft/nondb
A NoSQL Database for itself.
https://github.com/xtlsoft/nondb
Last synced: 11 months ago
JSON representation
A NoSQL Database for itself.
- Host: GitHub
- URL: https://github.com/xtlsoft/nondb
- Owner: xtlsoft
- License: mit
- Created: 2017-11-04T22:45:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-04T05:45:47.000Z (over 8 years ago)
- Last Synced: 2025-04-05T22:32:38.814Z (about 1 year ago)
- Language: PHP
- Size: 28.3 KB
- Stars: 19
- Watchers: 3
- Forks: 26
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NonDB
NonDB Stands for None DB.
## Install 安装
```sh
composer install xtlsoft/nondb
```
## Usage 使用
```php
table('test')->getAll()[0]->another[0]->name;
$person = $db->table('person')->create();
$person->id = $person->parent()->autoincrement();
$person->name = $name;
$person->hobbies = ['swimming', 'dancing'];
$person->location = $db->table('location')[10]->name;
$person->save();
$anotherPerson = $person->parent()->find(NonDB::where('location', '%China%'));
$anotherPerson->setMode('id', NonDB::Auto)->save();
echo $anotherPerson->name;
echo $db->dump(\NonDB\Components\Dump::DUMP_JSON_PRETTY);
```
## Documents 文档
https://docs.xapps.top