Description
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.
Plates alternatives and similar libraries
Based on the "Templating" category.
Alternatively, view Plates alternatives based on common mentions on social networks and blogs.
-
Smarty
Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. -
Latte
☕ Latte: the safest & truly intuitive templates for PHP. Engine for those who want the most secure PHP sites. -
PHPTAL
PHP Template Attribute Language — template engine for XSS-proof well-formed XHTML and HTML5 pages -
Aura.View
Provides TemplateView and TwoStepView using PHP as the templating language, with support for partials, sections, and helpers.
InfluxDB - Purpose built for real-time analytics at any scale.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Plates or a related project?
Popular Comparisons
README
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 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
- 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
Installation
Plates is available via Composer:
composer require league/plates
Documentation
Full documentation can be found at platesphp.com.
Testing
composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- RJ Garcia (Current Maintainer)
- Jonathan Reinink (Original Author)
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
*Note that all licence references and agreements mentioned in the Plates README section above
are relevant to that project's source code only.