kadokweb / plates
Plates, the native PHP template system that's fast, easy to use and easy to extend.
Requires
- php: ^7.0
Requires (Dev)
- 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
This package is auto-updated.
Last update: 2024-12-15 02:11:12 UTC
README
NOTE: V4 docs are currently a work in progress. Contributions are welcome.
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 Blade.
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 and conventions
- 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
- 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
Plates is available via Composer:
composer require KadokWeb/plates
"kadokweb/plates": "1.0.*"
Documentation
Full documentation can be found at kadok.com.br.
Testing
make test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email rj@bighead.net instead of using the issue tracker.
Credits
- Doka Silva (Current Maintainer)
- kadok (Original Author)
- All Contributors
License
The MIT License (MIT). Please see License File for more information.