simondevelop / doff
Php library for managing yaml table data via query functions
Installs: 1 297
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 1
Requires
- php: >=7.3
- simondevelop/array-organize: ^0.2
- symfony/yaml: ^5.3
Requires (Dev)
- phpstan/phpstan: ^0.12.94
- phpunit/phpunit: ^9.5.8
- squizlabs/php_codesniffer: 4.0.x-dev
This package is auto-updated.
Last update: 2024-10-29 12:28:53 UTC
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