2023-02-23 21:03:19 +01:00
2018-04-23 08:32:18 +05:30
2022-06-12 12:10:23 +03:00
2017-04-22 15:59:20 +03:00
2023-02-23 21:03:19 +01:00
2023-02-21 22:09:00 +01:00
2023-02-06 23:49:54 +01:00
2020-07-06 11:35:15 +03:00
2013-07-04 01:48:54 +04:00
2016-06-09 22:58:05 +03:00
2023-02-05 21:59:04 +01:00
2023-02-05 21:59:04 +01:00
2013-04-28 18:08:57 +04:00
2023-02-05 21:59:04 +01:00
2023-02-06 23:49:54 +01:00

Fenom - Template Engine for PHP

Fenóm - lightweight and fast template engine for PHP.


Quick Start

Install

If you use composer in your project then you can to install Fenom as package.

Setup

There is two-way to create Fenom instance:

  • Long way: use operator new
  • Shot way: use static factory-method

Long way. Create you own template provider or default provider Fenom\Provider (that is provider read there). Using provider instance create Fenom instance:

$fenom = new Fenom(new Fenom\Provider($template_dir));

After that, set compile directory:

$fenom->setCompileDir($template_cache_dir);

This directory will be used for storing compiled templates, therefore it should be writable for Fenom. Now Fenom is ready to work and now you can to configure it:

$fenom->setOptions($options);

Short way. Creating an object via factory method with arguments from long way.

$fenom = Fenom::factory($template_dir, $template_cache_dir, $options);

Now Fenom is ready to work.

Usage

Example

Description
No description provided
Readme 2 MiB
Languages
PHP 97.7%
Smarty 2.3%