PHPackages                             bsodergren/raintpl - 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. bsodergren/raintpl

ActiveLibrary

bsodergren/raintpl
==================

easy and fast template engine

v1(1y ago)057MITPHPPHP &gt;=5.3

Since Dec 1Pushed 1y agoCompare

[ Source](https://github.com/bsodergren/raintpl3)[ Packagist](https://packagist.org/packages/bsodergren/raintpl)[ Docs](http://raintpl.com)[ RSS](/packages/bsodergren-raintpl/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

RainTPL 3
=========

[](#raintpl-3)

By Federico Ulfo and a lot [awesome contributors](https://github.com/rainphp/raintpl3/network)!

[RainTPL](http://raintpl.com) is an easy template engine for PHP that enables designers and developers to work better together, it loads HTML template to separate the presentation from the logic.

Features
--------

[](#features)

- Easy for designers, only 10 tags, *{$variable}*, *{#constant#}*, *{include}*, *{loop}*, *{if}*, *{* comment *}*, *{noparse}*, *{function}*
- Easy for developers, 5 methods to load and draw templates.
- Powerful, modifier and operation with variables
- Extensible, load plugins and register new tags
- Secure, sandbox with blacklist.

Installation / Usage
--------------------

[](#installation--usage)

1. Install composer
2. Create a composer.json inside your application folder:

    ```
    {
        "require": {
            "rain/raintpl": ">=3.0.0"
        }
    }
    ```
3. Run the following code

    ```
    $ php composer.phar install
    ```
4. Run one example of RainTPL with your browser: `http://localhost/raintpl3/example.php`

Documentation
-------------

[](#documentation)

The [documentation](https://github.com/rainphp/raintpl3/wiki/Documentation) of RainTPL is divided in [documentation for web designers](https://github.com/rainphp/raintpl3/wiki/Documentation-for-web-designers) and [documentation for PHP developers](https://github.com/rainphp/raintpl3/wiki/Documentation-for-PHP-developers).

Licence
-------

[](#licence)

RainTPL 3, like its antecessor Rain.TPL version 2, is, as of 2018-06-07, published under the MIT Licence.

The above applies to RainTPL 3 itself, not the entire content of this repository. Some of the `example-*.php` files and the content below `templates/` in this repository are copies of external code under various licences, such as:

- Twitter Bootstrap, under the Apache v2 licence
- LESS - Leaner CSS, under the Apache v2 licence

Note that not all external content comes with full source code, it’s usually just a copy of (possibly minified or otherwise modified) parts of their distribution. The example files may be used as starting points without limitation except the licences on the external content.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

681d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8ff90b877c5eda75c5c326dec17647016462ca576f742cabd976721c604b5d42?d=identicon)[bsodergren](/maintainers/bsodergren)

---

Top Contributors

[![feulf](https://avatars.githubusercontent.com/u/540035?v=4)](https://github.com/feulf "feulf (217 commits)")[![bsodergren](https://avatars.githubusercontent.com/u/2517429?v=4)](https://github.com/bsodergren "bsodergren (18 commits)")[![kargnas](https://avatars.githubusercontent.com/u/1438533?v=4)](https://github.com/kargnas "kargnas (8 commits)")[![Faryshta](https://avatars.githubusercontent.com/u/2029247?v=4)](https://github.com/Faryshta "Faryshta (8 commits)")[![amunhoz](https://avatars.githubusercontent.com/u/2170321?v=4)](https://github.com/amunhoz "amunhoz (7 commits)")[![suralc](https://avatars.githubusercontent.com/u/730039?v=4)](https://github.com/suralc "suralc (7 commits)")[![aspyatkin](https://avatars.githubusercontent.com/u/4273812?v=4)](https://github.com/aspyatkin "aspyatkin (4 commits)")[![PMickael](https://avatars.githubusercontent.com/u/122271?v=4)](https://github.com/PMickael "PMickael (4 commits)")[![xPaw](https://avatars.githubusercontent.com/u/613331?v=4)](https://github.com/xPaw "xPaw (4 commits)")[![gamma613](https://avatars.githubusercontent.com/u/1322535?v=4)](https://github.com/gamma613 "gamma613 (3 commits)")[![jnerin](https://avatars.githubusercontent.com/u/2012580?v=4)](https://github.com/jnerin "jnerin (2 commits)")[![mirabilos](https://avatars.githubusercontent.com/u/861078?v=4)](https://github.com/mirabilos "mirabilos (1 commits)")[![wu3rstle](https://avatars.githubusercontent.com/u/8260342?v=4)](https://github.com/wu3rstle "wu3rstle (1 commits)")[![aseba](https://avatars.githubusercontent.com/u/443184?v=4)](https://github.com/aseba "aseba (1 commits)")[![smsaladi](https://avatars.githubusercontent.com/u/2942215?v=4)](https://github.com/smsaladi "smsaladi (1 commits)")[![BarryDam](https://avatars.githubusercontent.com/u/4747818?v=4)](https://github.com/BarryDam "BarryDam (1 commits)")[![rafael-fong](https://avatars.githubusercontent.com/u/268718000?v=4)](https://github.com/rafael-fong "rafael-fong (1 commits)")[![Manawyrm](https://avatars.githubusercontent.com/u/748791?v=4)](https://github.com/Manawyrm "Manawyrm (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bsodergren-raintpl/health.svg)

```
[![Health](https://phpackages.com/badges/bsodergren-raintpl/health.svg)](https://phpackages.com/packages/bsodergren-raintpl)
```

###  Alternatives

[nette/php-generator

🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 8.5 features.

2.2k64.2M574](/packages/nette-php-generator)[nette/caching

⏱ Nette Caching: library with easy-to-use API and many cache backends.

43518.6M365](/packages/nette-caching)[nette/mail

📧 Nette Mail: A handy library for creating and sending emails in PHP.

5389.8M244](/packages/nette-mail)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M81](/packages/symplify-monorepo-builder)[ssch/typo3-rector

Instant fixes for your TYPO3 PHP code by using Rector.

2592.8M262](/packages/ssch-typo3-rector)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

134391.5k12](/packages/rector-rector-src)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
