1. Go to this page and download the library: Download fenom/storage 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/ */
fenom / storage example snippets
class MyFenom extends \Fenom {
use \Fenom\StorageTrait;
}
// set variable
$fenom->assign("var_name", $value);
// set variable by references
$fenom->assignByRef("var_name", $value);
// append variable to tail of array 'var_name'
$fenom->append("var_name", $value);
// prepend variable to head of array 'var_name'
$fenom->prepend("var_name", $value);
$vars = $fenom->getVars();
// set all variables as single array (rewrite previous array)
$fenom->assignAll($vars);
// remove all variables
$fenom->resetVars();
$fenom->pipe($template_name, $callback);
$fenom->fetch($template_name);
$fenom->display($template_name);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.