PHP code example of simondevelop / doff
1. Go to this page and download the library: Download simondevelop/doff library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
simondevelop / doff example snippets
// Initiate doff
$settings = [
"path" => "/path/of/data/files/",
"chmod" => 0770 // optionnal, octal value (only string or integer type)
];
$doff = new Doff($settings);
//...
// Example with like query for query.yml
$datas = $doff->select("query", ["name" => "%test%"]);
$datas = [
["name" => "test 0"],
["name" => "test 1"],
["name" => "test 2"]
];