1. Go to this page and download the library: Download feldsam-inc/fuel-parser 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/ */
feldsam-inc / fuel-parser example snippets
// old usage still valid, will load app/views/example.php
View::forge('example');
// load a Mustache template, will load and parse app/views/example.mustache
View::forge('example.mustache');
// load a Twig template, will load and parse app/views/example.twig
View::forge('example.twig');
// load a Hybrid Haml / Twig template, ATTENTION: this one expects app/views/example.twig and {% haml %} code at the top of the view
View::forge('example.mthaml');
// load a Jade template, will load and parse app/views/example.jade
View::forge('example.jade');
// load a Haml template, will load and parse app/views/example.haml
View::forge('example.haml');
// load a Smarty template, will load and parse app/views/example.smarty
View::forge('example.smarty');
// load a Lex template, will load and parse app/views/example.lex
View::forge('example.lex');
// load a Dwoo template, ATTENTION: this one expects app/views/example.tpl
View::forge('example.dwoo');
// load a Handlebars template, will load and parse app/views/example.handlebars
View::forge('example.handlebars');
// Clear the cache for a specific Smarty template
$view = View::forge('example.smarty');
$view->parser()->clearCache('example.smarty');
// Example static usage
View_Smarty::parser()->clearCache('example.smarty');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.