1. Go to this page and download the library: Download irfantoor/datastore 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/ */
irfantoor / datastore example snippets
$ds = new IrfanTOOR\Datastore('/yourpath/to/datatore/');
$ds = new IrfanTOOR\Datastore('/yourpath/to/datatore/');
if ($ds->has('hello')) {
echo $ds->get('hello');
}
$file = 'absolute\path\to\your\reference_file.txt';
$ds->addFile('reference', $file);
# or you can add some meta information
$ds->addFile('reference', $file, ['keywords' => 'reference', 'sites', 'index', '...']);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.