Presto is simple and lightweight php templating engine based on the syntax of twig. It was built as part for Opiner CMS
framework but become solo project that you can use as composer package in your own project.
Presto requires to run correctly:
PHP
version5.3
or above
Simply add a dependency on tatarko/presto
to your project's composer.json
file if you use Composer to manage the dependencies of your project. Here is a minimal example of a composer.json
file that just defines a dependency on Presto
:
{
"require": {
"tatarko/presto": "~1.0"
}
}
In case you don't use Composer
as your dependency manager you are still able to use Presto
. There are only two easy steps to get Presto
work.
- Download presto.zip and put extracted archive into your project's folder.
- Add following code to your project's root php file (e.g.
index.php
) and remember to changepath/to/
according to relative location of downloadedpresto
folder:
require_once 'path/to/source/__autoloader.php';
Please, see Wiki for online documentation.