27
GitHub - asgrim/yamldb: Don't use this, please.
source link: https://github.com/asgrim/yamldb
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
YamlDb
Note: this is a silly project, not intended for production.
This library allows you to use a YAML file as a database in a PHP project.
Installation
Install with composer require asgrim/yamldb
.
Usage
use Asgrim\YamlDb\Database\FlysystemBackedYamlDb; use League\Flysystem\Adapter\Local; use League\Flysystem\Filesystem; $yamlDb = new FlysystemBackedYamlDb(new Filesystem(new Local('/var/lib/yamldb'))); $generatedId = $yamlDb->insert(['foo' => 'bar']); // Later... $myData = $yamlDb->findById($generatedId); // ['foo' => 'bar']
Why
Why not.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK