smarty  4.0.0-rc.0
About: Smarty is a "compiling" template engine for PHP. Release candidate.
  Fossies Dox: smarty-4.0.0-rc.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

smarty Documentation

Some Fossies usage hints in advance:

  1. To see the Doxygen generated documentation please click on one of the items in the steelblue colored "quick index" bar above or use the side panel at the left which displays a hierarchical tree-like index structure and is adjustable in width.
  2. If you want to search for something by keyword rather than browse for it you can use the client side search facility (using Javascript and DHTML) that provides live searching, i.e. the search results are presented and adapted as you type in the Search input field at the top right.
  3. Doxygen doesn't incorporate all member files but just a definable subset (basically the main project source code files that are written in a supported language). So to search and browse all member files you may visit the Fossies smarty-4.0.0-rc.0.tar.gz contents page and use the Fossies standard member browsing features (also with source code highlighting and additionally with optional code folding).

Smarty 3 template engine



For documentation see


Smarty can be run with PHP 7.1 to PHP 8.0.

Distribution repository

Smarty 3.1.28 introduces run time template inheritance

Read the NEW_FEATURES and INHERITANCE_RELEASE_NOTES file for recent extensions to Smarty 3.1 functionality

Smarty versions 3.1.11 or later are now on GitHub and can be installed with Composer.

The "smarty/smarty" package will start at libs/.... subfolder.

To get the latest stable version of Smarty 3.1 use:

"require": {
    "smarty/smarty": "~3.1"

in your composer.json file.

To get the trunk version use:

"require": {
    "smarty/smarty": "~3.1@dev"

For a specific version use something like:

"require": {
    "smarty/smarty": "3.1.19"

PHPUnit test can be installed by corresponding composer entries like:

"require": {
    "smarty/smarty-phpunit": "3.1.19"

Similar applies for the lexer/parser generator.

"require": {
    "smarty/smarty-lexer": "3.1.19"

Or you could use:

"require": {
    "smarty/smarty-dev": "3.1.19"

Which is a wrapper to install all 3 packages.