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

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

kadokweb/plates
===============

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

1.0.0(4y ago)05MITPHPPHP ^7.0

Since Jan 14Pushed 4y ago1 watchersCompare

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

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

Plates
======

[](#plates)

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

[![Maintainer](https://camo.githubusercontent.com/a4dcbb59925d08d95a5aab17a50fd550c5c211e809e5e3616808aa48a1747ebc/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65722d406b61646f6b7765622d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/kadokweb)[![Source Code](https://camo.githubusercontent.com/154d367d1b2b99c67f735197780c76bb664c6849213d40971532c53f33329e7e/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d4b61646f6b5765622f706c617465732d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/kadokweb/plates)[![Latest Version](https://camo.githubusercontent.com/5fb2f099c2b0a74fbdb3e80355cd5bd64581df15a777913f148f8af8bcdfb97e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6b61646f6b7765622f706c617465732e7376673f7374796c653d666c61742d737175617265)](https://github.com/kadokweb/plates/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/11653b27a6e5029cf9887cdf8086626991c12dc0dd34767dc02faf51db2d12cd/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6b61646f6b7765622f706c617465732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/kadokweb/plates)[![Coverage Status](https://camo.githubusercontent.com/9de20c9ad5c3e9094ec2eb66296b5befae396c322d8dc6a180b90b2c30f3b9f5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6b61646f6b7765622f706c617465732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/kadokweb/plates/code-structure)[![Quality Score](https://camo.githubusercontent.com/a93453527e9c5504baffe72d66d424bd60e5a29a08143d1c7a3517f88f2f00bf/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6b61646f6b7765622f706c617465732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/kadokweb/plates)[![Total Downloads](https://camo.githubusercontent.com/c5ebc1a484ca5e116f6cef5f19090e36288437d2eb83b3a7b66f585bd1df869c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4b61646f6b5765622f706c617465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/KadokWeb/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://kadok.com.br/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://kadok.com.br/templates/layouts/) and [inheritance](http://kadok.com.br/templates/inheritance/)
- Template [folders](http://kadok.com.br/engine/folders/) for grouping templates into namespaces
- [Data](http://kadok.com.br/templates/data/#preassigned-and-shared-data) sharing across templates
- Preassign [data](http://kadok.com.br/templates/data/#preassigned-and-shared-data) to specific templates
- Built-in [escaping](http://kadok.com.br/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 KadokWeb/plates
```

```
"kadokweb/plates": "1.0.*"
```

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

[](#documentation)

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

Testing
-------

[](#testing)

```
make test
```

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

[](#contributing)

Please see [CONTRIBUTING](https://github.com/kadokweb/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)

- [Doka Silva](https://github.com/kadokweb) (Current Maintainer)
- [kadok](https://github.com/kadokweb) (Original Author)
- [All Contributors](https://github.com/kadokweb/plates/contributors)

License
-------

[](#license)

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

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

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

1585d ago

### Community

Maintainers

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

---

Tags

packagetemplatingtemplatesviewsKadokWeb

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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