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

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

codephix/plates
===============

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

3(4y ago)090MITPHPPHP &gt;=7.2

Since Jan 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/codephix/places-sdk)[ Packagist](https://packagist.org/packages/codephix/plates)[ Docs](http://platesphp.com)[ RSS](/packages/codephix-plates/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (4)Used By (0)

Plates
======

[](#plates)

**NOTE: V4 docs are currently a work in progress. Contributions are welcome.**

[![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/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 Blade.

### 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 and conventions
- 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
- Simple design crafted for extendability - most features are built as extensions
- Everything is customizable, don't like the behavior of something, you can change it
- Composable naming strategies allowing relative templates, folders, and dynamic base paths.
- Framework-agnostic, will work with any project
- Decoupled design makes templates easy to test
- Supports non-php file rendering for img or svg files to include in your templates.
- Composer ready and PSR-2 compliant

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

[](#installation)

Plates is available via Composer:

```
composer require league/plates:v4.0.0-alpha
```

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

[](#documentation)

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

Testing
-------

[](#testing)

```
make 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

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

3

Last Release

1581d ago

PHP version history (3 changes)1PHP &gt;=7.0

2PHP ^7.0

3PHP &gt;=7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26178315?v=4)[CodePhix](/maintainers/codephix)[@codephix](https://github.com/codephix)

---

Top Contributors

[![codephix](https://avatars.githubusercontent.com/u/26178315?v=4)](https://github.com/codephix "codephix (3 commits)")

---

Tags

packageleaguetemplatingtemplatesviews

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/codephix-plates/health.svg)](https://phpackages.com/packages/codephix-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)
