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

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

league/plates
=============

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

v3.6.0(1y ago)1.5k5.9M↓14.5%185[18 issues](https://github.com/thephpleague/plates/issues)[11 PRs](https://github.com/thephpleague/plates/pulls)20MITPHPPHP ^8.0CI failing

Since Nov 14Pushed 4mo ago60 watchersCompare

[ Source](https://github.com/thephpleague/plates)[ Packagist](https://packagist.org/packages/league/plates)[ Docs](https://platesphp.com)[ RSS](/packages/league-plates/feed)WikiDiscussions v3 Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (24)Used By (20)

Plates
======

[](#plates)

[![Maintainer](https://camo.githubusercontent.com/933b1d687d728cd5ea012f52c507613b92aa1cc0da2da0afadd455bb23d278dd/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65722d40726167626f796a722d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/ragboyjr)[![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/1f6be72003d9ea0fe46f2a77dc6332dde02d90fb57a804686c3bd5bb8a3027e7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7468657068706c65616775652f706c617465732f7068702e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/thephpleague/plates/actions?query=workflow%3APHP+branch%3Av3)[![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](https://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](https://platesphp.com/templates/layouts/) and [inheritance](https://platesphp.com/templates/inheritance/)
- Template [folders](https://platesphp.com/engine/folders/) for grouping templates into namespaces
- [Data](https://platesphp.com/templates/data/#preassigned-and-shared-data) sharing across templates
- Preassign [data](https://platesphp.com/templates/data/#preassigned-and-shared-data) to specific templates
- Built-in [escaping](https://platesphp.com/templates/escaping/) helpers
- Easy to extend using [functions](https://platesphp.com/engine/functions/) and [extensions](https://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](https://platesphp.com/).

Testing
-------

[](#testing)

```
composer test
```

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)

- [RJ Garcia](https://github.com/ragboyjr) (Current Maintainer)
- [Jonathan Reinink](https://github.com/reinink) (Original Author)
- [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

67

—

FairBetter than 100% of packages

Maintenance59

Moderate activity, may be stable

Popularity70

Solid adoption and visibility

Community55

Growing community involvement

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 61.8% 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 ~222 days

Recently: every ~725 days

Total

21

Last Release

129d ago

Major Versions

1.2.1 → 2.0.02014-03-31

2.1.0 → 3.0.02014-09-27

3.3.0 → v4.0.0-alpha2018-01-31

PHP version history (4 changes)3.2.0PHP ^5.3 | ^7.0

v4.0.0-alphaPHP ^7.0

v3.4.0PHP ^7.0|^8.0

v3.6.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/eb6fefdc879af2c2166f13dd63ef8a33f88f58b642b67077df7ccb68e975afa4?d=identicon)[reinink](/maintainers/reinink)

![](https://www.gravatar.com/avatar/a6f21acab19d85e04f8ce3ff759743f9438810ab7771d7ddf96d167fa9f86220?d=identicon)[ragboyjr](/maintainers/ragboyjr)

---

Top Contributors

[![reinink](https://avatars.githubusercontent.com/u/882133?v=4)](https://github.com/reinink "reinink (165 commits)")[![ragboyjr](https://avatars.githubusercontent.com/u/1975857?v=4)](https://github.com/ragboyjr "ragboyjr (42 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)")[![roxblnfk](https://avatars.githubusercontent.com/u/4152481?v=4)](https://github.com/roxblnfk "roxblnfk (3 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)")[![carbontwelve](https://avatars.githubusercontent.com/u/464699?v=4)](https://github.com/carbontwelve "carbontwelve (2 commits)")[![odahcam](https://avatars.githubusercontent.com/u/3942006?v=4)](https://github.com/odahcam "odahcam (2 commits)")[![harikt](https://avatars.githubusercontent.com/u/120454?v=4)](https://github.com/harikt "harikt (2 commits)")[![magnus-eriksson](https://avatars.githubusercontent.com/u/3640297?v=4)](https://github.com/magnus-eriksson "magnus-eriksson (2 commits)")[![srjlewis](https://avatars.githubusercontent.com/u/56001?v=4)](https://github.com/srjlewis "srjlewis (2 commits)")[![kozubsky](https://avatars.githubusercontent.com/u/29902572?v=4)](https://github.com/kozubsky "kozubsky (2 commits)")[![visavi](https://avatars.githubusercontent.com/u/826831?v=4)](https://github.com/visavi "visavi (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)")[![fatcat386](https://avatars.githubusercontent.com/u/12583551?v=4)](https://github.com/fatcat386 "fatcat386 (1 commits)")[![gomzyakov](https://avatars.githubusercontent.com/u/1460709?v=4)](https://github.com/gomzyakov "gomzyakov (1 commits)")

---

Tags

native-php-templatesphp7templatespackageleaguetemplatingtemplatesviews

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[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)
