PHPackages                             pinguo/plates - 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. pinguo/plates

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

pinguo/plates
=============

Plates, the native PHP template system that's fast, easy to use and easy to extend.

3.3.1(8y ago)04602MITPHPPHP ^5.3 | ^7.0

Since Nov 14Pushed 8y ago5 watchersCompare

[ Source](https://github.com/pinguo/plates)[ Packagist](https://packagist.org/packages/pinguo/plates)[ Docs](http://platesphp.com)[ RSS](/packages/pinguo-plates/feed)WikiDiscussions master Synced 3d ago

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

Plates
======

[](#plates)

[![Author](https://camo.githubusercontent.com/681700ed81f8ce87b1a35742c5f072538001795e034c2fce30f8a2d15eb1472f/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d407265696e696e6b2d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/reinink)[![Source Code](https://camo.githubusercontent.com/3f9c91b3b435e7f5a7904fc9b49acca42ff87bcfc6aa3af1f79908587f17b880/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d6c65616775652f706c617465732d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/thephpleague/plates)[![Latest Version](https://camo.githubusercontent.com/c607849b51e8c863d3d61ac13dea33c33e8fe665de0346b1e59baff9b7db6b57/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7468657068706c65616775652f706c617465732e7376673f7374796c653d666c61742d737175617265)](https://github.com/thephpleague/plates/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/3a8acf4281c4c827bac96a33c475261c0ed370d816d0ed5feb2d3a92bb7cdda2/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7468657068706c65616775652f706c617465732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/thephpleague/plates)[![Coverage Status](https://camo.githubusercontent.com/0275f72ed9c9e5c1495e5d2f5eed4022ff7964781b5239eef3384aa3ee01bce8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7468657068706c65616775652f706c617465732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/thephpleague/plates/code-structure)[![Quality Score](https://camo.githubusercontent.com/3f74171ae40ba502cd4230de3b987b5cc81d55d1d405d6bfca6bbcd4462a9c0d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7468657068706c65616775652f706c617465732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/thephpleague/plates)[![Total Downloads](https://camo.githubusercontent.com/b3c836598ce8d85298a11eb62526302ba07c998110bc0c40d1b932f8910073be/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c65616775652f706c617465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/league/plates)

Plates is a native PHP template system that's fast, easy to use and easy to extend. It's inspired by the excellent [Twig](http://twig.sensiolabs.org/) template engine and strives to bring modern template language functionality to native PHP templates. Plates is designed for developers who prefer to use native PHP templates over compiled template languages, such as Twig or Smarty.

### Highlights

[](#highlights)

- Native PHP templates, no new [syntax](http://platesphp.com/templates/syntax/) to learn
- Plates is a template system, not a template language
- Plates encourages the use of existing PHP functions
- Increase code reuse with template [layouts](http://platesphp.com/templates/layouts/) and [inheritance](http://platesphp.com/templates/inheritance/)
- Template [folders](http://platesphp.com/engine/folders/) for grouping templates into namespaces
- [Data](http://platesphp.com/templates/data/#preassigned-and-shared-data) sharing across templates
- Preassign [data](http://platesphp.com/templates/data/#preassigned-and-shared-data) to specific templates
- Built-in [escaping](http://platesphp.com/templates/escaping/) helpers
- Easy to extend using [functions](http://platesphp.com/engine/functions/) and [extensions](http://platesphp.com/engine/extensions/)
- Framework-agnostic, will work with any project
- Decoupled design makes templates easy to test
- Composer ready and PSR-2 compliant

Installation
------------

[](#installation)

Plates is available via Composer:

```
composer require league/plates

```

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

[](#documentation)

Full documentation can be found at [platesphp.com](http://platesphp.com/).

Testing
-------

[](#testing)

```
phpunit
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/thephpleague/plates/blob/master/CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Jonathan Reinink](https://github.com/reinink)
- [All Contributors](https://github.com/thephpleague/plates/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/thephpleague/plates/blob/master/LICENSE) for more information.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 78.2% 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

Every ~86 days

Recently: every ~262 days

Total

17

Last Release

3175d ago

Major Versions

1.2.1 → 2.0.02014-03-31

2.1.0 → 3.0.02014-09-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/73195cce221c441227e404e16ba55668266bcfec3b5b659c2cf344cdccb5ef53?d=identicon)[pinguo-zhanglu](/maintainers/pinguo-zhanglu)

---

Top Contributors

[![reinink](https://avatars.githubusercontent.com/u/882133?v=4)](https://github.com/reinink "reinink (165 commits)")[![localheinz](https://avatars.githubusercontent.com/u/605483?v=4)](https://github.com/localheinz "localheinz (12 commits)")[![SxDx](https://avatars.githubusercontent.com/u/2004247?v=4)](https://github.com/SxDx "SxDx (4 commits)")[![electricjones](https://avatars.githubusercontent.com/u/5412413?v=4)](https://github.com/electricjones "electricjones (4 commits)")[![baileylo](https://avatars.githubusercontent.com/u/145345?v=4)](https://github.com/baileylo "baileylo (4 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (3 commits)")[![ricardofiorani](https://avatars.githubusercontent.com/u/1641075?v=4)](https://github.com/ricardofiorani "ricardofiorani (3 commits)")[![magnus-eriksson](https://avatars.githubusercontent.com/u/3640297?v=4)](https://github.com/magnus-eriksson "magnus-eriksson (2 commits)")[![pinguo-xudianyang](https://avatars.githubusercontent.com/u/13619778?v=4)](https://github.com/pinguo-xudianyang "pinguo-xudianyang (2 commits)")[![harikt](https://avatars.githubusercontent.com/u/120454?v=4)](https://github.com/harikt "harikt (2 commits)")[![xudianyang](https://avatars.githubusercontent.com/u/3177355?v=4)](https://github.com/xudianyang "xudianyang (1 commits)")[![duncan3dc](https://avatars.githubusercontent.com/u/546811?v=4)](https://github.com/duncan3dc "duncan3dc (1 commits)")[![elazar](https://avatars.githubusercontent.com/u/15487?v=4)](https://github.com/elazar "elazar (1 commits)")[![jamesdb](https://avatars.githubusercontent.com/u/6299056?v=4)](https://github.com/jamesdb "jamesdb (1 commits)")[![kafene](https://avatars.githubusercontent.com/u/2747027?v=4)](https://github.com/kafene "kafene (1 commits)")[![pborreli](https://avatars.githubusercontent.com/u/77759?v=4)](https://github.com/pborreli "pborreli (1 commits)")[![philsturgeon](https://avatars.githubusercontent.com/u/67381?v=4)](https://github.com/philsturgeon "philsturgeon (1 commits)")[![ragboyjr](https://avatars.githubusercontent.com/u/1975857?v=4)](https://github.com/ragboyjr "ragboyjr (1 commits)")[![vlakoff](https://avatars.githubusercontent.com/u/544424?v=4)](https://github.com/vlakoff "vlakoff (1 commits)")[![anlutro](https://avatars.githubusercontent.com/u/163093?v=4)](https://github.com/anlutro "anlutro (1 commits)")

---

Tags

packageleaguetemplatingtemplatesviews

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/pinguo-plates/health.svg)

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

###  Alternatives

[league/plates

Plates, the native PHP template system that's fast, easy to use and easy to extend.

1.5k5.9M232](/packages/league-plates)[igaster/laravel-theme

Laravel Themes: Asset &amp; Views folder per theme. Theme inheritance. Blade integration and more...

5161.2M12](/packages/igaster-laravel-theme)[laminas/laminas-view

Fast and type safe HTML templating library with a flexible plugin system supporting multistep template composition

7526.3M230](/packages/laminas-laminas-view)[duncan3dc/blade

Use Laravel Blade templates without the full Laravel framework

160499.5k24](/packages/duncan3dc-blade)[mobicms/render

Native PHP template engine

106.7k1](/packages/mobicms-render)[devanych/view-renderer

Simple PHP View Renderer

153.2k1](/packages/devanych-view-renderer)

PHPackages © 2026

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