Download the PHP package h4d/template without Composer
On this page you can find all versions of the php package h4d/template. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package template
What is this?
This is a very basic PHP library that helps you work with plain text format templates (txt, html, etc).
Install via composer:
Install the latest version with
$ composer require h4d/template
Basic usage examples
Using constructor
<?php
// Create a template
$template = new \H4D\Template\Template();
// Add vars to the template object
$template->addVar('name', 'WORLD');
// Render using the given file as template
echo $template->render('./template.txt');
Using static method (the fast way)
<?php
// Create a template & set the template file
$template = \H4D\Template\Template::create('./template.txt');
// Add vars to the template object
$template->addVar('name', '(static) WORLD');
// Render template (automagically cast to string)
echo $template;All versions of template with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.5.9
The package h4d/template contains the following files
Loading the files please wait ...