-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
62 lines (48 loc) · 1.5 KB
/
index.html
File metadata and controls
62 lines (48 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
title: Filicious - cooking files with flavor!
---
<div class="jumbotron">
<h1>Filicious</h1>
<p>Cooking files with flavor!</p>
</div>
<div class="row">
<div class="col-md-6">
<h2>Start cooking…</h2>
{% highlight php startinline %}
use Filicious\Local\LocalAdapter;
use Filicious\Filesystem;
$adapter = new LocalAdapter('/var/lib/kitchen');
$filesystem = new Filesystem($adapter);
$cauldron = $filesystem->getFile('/cauldron');
$cauldron->createDirectory();
{% endhighlight %}
</div>
<div class="col-md-6">
<h2>…use a good recipe!</h2>
{% highlight php startinline %}
$ingredients = $filesystem->getFile('/ingredients');
foreach ($ingredients as $ingredient) {
$ingredient->moveTo($cauldron);
}
$stove = $cauldron->getPlugin('stove');
$stove->heating();
{% endhighlight %}
</div>
</div>
<h2>Are you serious?</h2>
<p>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. ;-)</p>
<h2>How to start?</h2>
<p>Using composer <code>require</code> command to add <code>filicious/core</code> to your <code>composer.json</code>.</p>
{% highlight sh %}
php composer.phar require filicious/core ~1.0
{% endhighlight %}
<p>Or adding the line manually to your <code>composer.json</code>.</p>
{% highlight json %}
{
"require": {
"filicious/core": "~1.0"
}
}
{% endhighlight %}