PHP code example of filicious / core
1. Go to this page and download the library: Download filicious/core 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/ */
filicious / core example snippets
use Filicious\Local\LocalAdapter;
use Filicious\Filesystem;
// go into your kitchen
$adapter = new LocalAdapter('/var/lib/kitchen');
$kitchen = new Filesystem($adapter);
// and grab the starter menu
$starterMenuInKitchen = $kitchen->getFile('/starter.menu');
// access the lounge
$adapter = new LocalAdapter('/var/lib/lounge');
$lounge = new Filesystem($adapter);
// and move the starter menu from the kitchen to the lounge
$starterMenuInLounge = $lounge->getFile('/starter.menu');
$starterMenuInKitchen->moveTo($starterMenuInLounge);