simondevelop/doff
Composer 安装命令:
composer require simondevelop/doff
包简介
Php library for managing yaml table data via query functions
README 文档
README
doff
DOFF for Data Oriented Flat-File, Library for managing yaml table data via query functions.
composer require simondevelop/doff
Example
<?php // Initiate doff require "vendor/autoload.php"; use SimonDevelop\Doff; $settings = [ "path" => "/path/of/data/files/", "chmod" => 0770 // optionnal, octal value (only string or integer type) ]; $doff = new Doff($settings);
In your /path/of/data/files
# test.yml - name: 'test 0' - name: 'test 1' - name: 'test 2' - name: '3' - name: '4'
<?php //... // Example with like query for query.yml $datas = $doff->select("query", ["name" => "%test%"]); $datas = [ ["name" => "test 0"], ["name" => "test 1"], ["name" => "test 2"] ];
Check this docs for more.
Go to contribute !
- Check the Code of Conduct
- Check the Contributing file
- Check the Pull Request Template
License
统计信息
- 总下载量: 1.3k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-03-29