PHPackages                             fenom/extra - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. fenom/extra

ActiveLibrary

fenom/extra
===========

Extra pack for Fenom

1112.1k1[3 issues](https://github.com/bzick/fenom-extra/issues)[2 PRs](https://github.com/bzick/fenom-extra/pulls)PHP

Since Nov 11Pushed 4y ago4 watchersCompare

[ Source](https://github.com/bzick/fenom-extra)[ Packagist](https://packagist.org/packages/fenom/extra)[ RSS](/packages/fenom-extra/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Add-ons for Fenom \[development\]
=================================

[](#add-ons-for-fenom-development)

Extra add-ons pack for [Fenom](https://github.com/bzick/fenom) template engine.

> Composer package: `{"fenom/extra": "dev-master"}`. See on [Packagist.org](https://packagist.org/packages/fenom/extra)

[![Build Status](https://camo.githubusercontent.com/732387d13a70ef4db3adef132f519348d70b25e3dc95510c29eceee1e8e4a46c/68747470733a2f2f7472617669732d63692e6f72672f627a69636b2f66656e6f6d2d65787472612e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/bzick/fenom-extra)

---

The library is a collection of add-ons. Each add-on present as trait. This realization allow create your template engine with custom collection of add-ons. Also library contain class `Fenom\Extra` - template engine which include all add-ons and ready out of the box.

Use class `Fenom\Extra` instead of `Fenom`:

```
$fenom = Fenom\Extra::factory($template_dir, $compiled_dir, $options);
```

Or combine your own templater:

### [List of add-ons](./docs/readme.md)

[](#list-of-add-ons)

For example:

```
class Templater extends \Fenom {
    use \Fenom\StorageTrait, // add internal storage of variables
        \Fenom\LoaderTrait, // allow add yours loaders for modifiers and tags
        \Fenom\PluginLoaderTrait; // add loader for modifiers and tags in Smarty-like style
    // ...
}
```

All add-ons implemented in class `\Fenom\Extra`.

### Storage

[](#storage)

Add-on: `Fenom\StorageTrait`

```
