PHPackages                             playsms/tpl - 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. [Templating &amp; Views](/categories/templating)
4. /
5. playsms/tpl

ActiveLibrary[Templating &amp; Views](/categories/templating)

playsms/tpl
===========

Dead simple PHP template engine

1.0.11(2y ago)246.9k↑40.5%MITPHP

Since Apr 19Pushed 2y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (12)Used By (0)

README
======

[](#readme)

Dead simple PHP template engine

InformationDescriptionAuthorAnton RaharjaContantaraharja at pm dot meVersion1.0.11Release date140422Last update231117Install
-------

[](#install)

Using composer by providing or editing `composer.json`.

Minimum `composer.json`:

```
{
	"require": {
		"playsms/tpl": "1.*"
	}
}

```

More information about composer can be found at its website

This package can also be installed without composer. You can simply include the `src/Playsms/Tpl.php`.

Usage example
-------------

[](#usage-example)

An example template file `the_page.html`:

```

	This is the title: {{ title }}
	This is the content: {{ content }}
	And this is the data: {{ $data }}

	Color: {{ lines.color }}

```

Example PHP file `show_page.php` using the template file `the_page.html`:

```
