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

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

pine3ree/pine3ree-plates-extension
==================================

A common base abstract Plates extension with methods auto-registration and more

1.1.0(1y ago)111BSD-3-ClausePHPPHP ^7.4 || ^8.0CI passing

Since Jul 9Pushed 11mo ago1 watchersCompare

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

READMEChangelog (3)Dependencies (7)Versions (4)Used By (0)

pine3ree Plates Extension
=========================

[](#pine3ree-plates-extension)

This package introduces a common base abstract Extension for Plates native php templating engine providing:

- autoregistration of public methods (feature that can be disabled)
- the ability to manually register public methods with shorter syntax
- the ability to add function aliases on extension registration
- the ability to add function aliases before extension registration happens

Autoregistration of public methods
----------------------------------

[](#autoregistration-of-public-methods)

By default, with the exclusion of magic methods, all public methods are registered as template helpers with the Plates engine, using method names as template helper name, basically doing the following for you:

```
