Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xtlsoft/nondb
A NoSQL Database for itself.
https://github.com/xtlsoft/nondb
Last synced: 2 days 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 (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-04T05:45:47.000Z (over 6 years ago)
- Last Synced: 2024-07-05T14:25:49.619Z (4 months ago)
- Language: PHP
- Size: 28.3 KB
- Stars: 19
- Watchers: 4
- 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