NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #2683 most downloaded on Packagist
Plates, the native PHP template system that's fast, easy to use and easy to extend.
Latest stable
v3.6.0
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 3 weeks to 2.9 years
Nearly every release is documented
notes for 19 of 19 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
20 releases · first in 2013
Drag across the ruler to compare, or tap a release to open it.
EDIT (12/24/2020): This release has been abandoned. Some of this work will be merged into the v3 branch, but most of it has been scrapped. This tag wi
EDIT (12/24/2020): This release has been abandoned. Some of this work will be merged into the v3 branch, but most of it has been scrapped. This tag will still be available, but a version 4 will not be based off of this alpha release.
v4 has been a complete rewrite in the plates system. It's fairly backwards compatible, but a lot of the internals have changed, and we still have a decent amount of features and work to do for v4.
Documentation is lacking for many of these features. Contributions are welcome! The best way to learn about the features it to look at the tests and examples.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fix dynamic property deprecations / Upgrade php min versions by @ragboyjr in #329
build status in README.md by @gomzyakov in #304Full Changelog: v3.5.0...v3.6.0
build status in README.md by @gomzyakov in https://github.com/thephpleague/plates/pull/304Full Changelog: https://github.com/thephpleague/plates/compare/v3.5.0...v3.6.0
Themes Support #234 by @ragboyjr in #270
Engine->make() by @Rayne in #302Full Changelog: v3.4.0...v3.5.0
Engine->make() by @Rayne in https://github.com/thephpleague/plates/pull/302Full Changelog: https://github.com/thephpleague/plates/compare/v3.4.0...v3.5.0
Added new unshift method in templates to support prepending content to sections (thanks @kozubsky)
Added the ability to append content to sections using the new push() function.
push() function.end() function as an alias to stop().Fixed an issue where template functions were not accessible from extensions.
$template->data().toString() magic method.composer test.Fix bug related to output buffering and exceptions (#78).
Added batch functionality to the escaping functions.
Added ability to define the default content of a section.
Improved custom function name validation.
Template class.Updated extension interface to ensure that an instance of the Engine class be passed to the register() method.
Engine class be passed to the register() method.Added ability to share data across templates.
render() method to Engine class, improving the use of the Engine as the primary API.$this pseudo-variable.getFunctions() method with new register() method.section() function instead.end() function to stop(). This fits more appropriately with the start() function.get() function to fetch().pathExists() method in the Engine class to exists().getTemplatePath() method in the Engine class to path().makeTemplate() method in the Engine class to make().Template class. For example: $this->name = 'Jonathan'. This applies both within and outside of templates. Use the data() method instead.getEngine() method from the Template class. There's no reason to need this anymore.addFolders() method from the Engine() class.unloadExtension() and unloadExtensionFunction() methods from the Engine() class.Improved DocBlocks throughout the library.
insert() functionality has been moved to a new extension, called Nest.get() function was also added with this extension, which offers an alternative syntax for nesting templates.render() function from within templates themselves. If this functionally is required, use the nesting functions instead.content() function when calling it from a non layout template.batch() extension function when a provided function does not exist.Added stacked layouts, allowing even further simplification and organization of templates.
unloadExtension() and unloadExtensionFunction() methods to the Engine() class.getEngine() method to the Template class.addFolders() and loadExtensions() methods to the Engine() class.Added new makeTemplate() template factory method.
makeTemplate() template factory method.pathExists() method to check if a template exists.- Switched to PSR-4 autoloading.
Updated to reflect new GitHub username (changed from php-loep to thephpleague).
php-loep to thephpleague).Fix bug in the batch extension.
Added the ability to assign template variables using the insert() method.
insert() method.Added "replace" value to Composer configuration.
One column per quarter.