PHP code example of robert-grubb / filerdb-php
1. Go to this page and download the library: Download robert-grubb/filerdb-php 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/ */
robert-grubb / filerdb-php example snippets
$filerdb->databases->list(); // Returns array
$filerdb->database('dev')->collections(); // Returns array
// Specific document
$filerdb
->database('dev')
->collection('users')
->id('asdfwegd')
->delete();
// With filters
$filerdb
->database('dev')
->collection('users')
->filter(['username' => 'test'])
->delete();