PHPackages                             barcodex/temple - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. barcodex/temple

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

barcodex/temple
===============

Simple flat text processor

081PHP

Since Apr 4Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Readme
======

[](#readme)

Temple is a lightweight text processor, suitable for usage in MVC systems that favour thick controllers.

Even though template processing assumes reading the template contents from somewhere, Temple is only works with the texts, leaving the task of implementing template reading/writing/caching to the libraries that use the library. If you are looking for an example of the project that implements Temple in this regard, take a look at [Templar](https://bitbucket.org/barcodex/templar)

\## Installation

Install Temple with Composer by adding a requirement into composer.json of your project:

```
{
   "require": {
        "barcodex/temple": "*"
   }
}
```

or requiring it from the command line:

```
composer require barcodex/temple:*
```

Basic Usage
-----------

[](#basic-usage)

Basically, Processor class is just a library of static methods that provide dynamic filling of texts with data.

The data that we pass to Processor methods, is just a normal PHP associative array, elements of which can be scalar values or other arrays.

```
