Cooking files with flavor!
use Filicious\Local\LocalAdapter;
use Filicious\Filesystem;
$adapter = new LocalAdapter('/var/lib/kitchen');
$filesystem = new Filesystem($adapter);
$cauldron = $filesystem->getFile('/cauldron');
$cauldron->createDirectory();
$ingredients = $filesystem->getFile('/ingredients');
foreach ($ingredients as $ingredient) {
$ingredient->moveTo($cauldron);
}
$stove = $cauldron->getPlugin('stove');
$stove->heating();
Yes we are! Using Filicious is like cooking for a good recipe. There is no need to use plain old functions, have you ever seen a function laying around in the kitchen? With Filicious everything is an object, like the cauldron, the ingredients or the stove. ;-)
Using composer require
command to add filicious/core
to your composer.json
.
php composer.phar require filicious/core ~1.0
Or adding the line manually to your composer.json
.
{
"require": {
"filicious/core": "~1.0"
}
}