Plates, the native PHP template system that's fast, easy to use and easy to extend.
Installs: 2 683 809
Stars: 1 376
Open Issues: 16
- php: ^7.0
- eloquent/phony-peridot: ^2.0
- peridot-php/leo: ^1.6
- peridot-php/peridot: ^1.19
- peridot-php/peridot-code-coverage-reporters: ^3.0
- squizlabs/php_codesniffer: ~1.5
Plates is a native PHP template system that's fast, easy to use and easy to extend. It's inspired by the excellent Twig 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.
- Native PHP templates, no new 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 and inheritance
- Template folders for grouping templates into namespaces
- Data sharing across templates
- Preassign data to specific templates
- Built-in escaping helpers
- Easy to extend using functions and extensions
- Framework-agnostic, will work with any project
- Decoupled design makes templates easy to test
- Composer ready and PSR-2 compliant
Plates is available via Composer:
composer require league/plates
Full documentation can be found at platesphp.com.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email firstname.lastname@example.org instead of using the issue tracker.
- RJ Garcia (Current Maintainer)
- Jonathan Reinink (Original Author)
- All Contributors
The MIT License (MIT). Please see License File for more information.