Download the PHP package vierbergenlars/appendr without Composer
On this page you can find all versions of the php package vierbergenlars/appendr. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package appendr
Appendr
Appendr is a small plugin to allow template strings to be changed in child templates.
Installation
$ composer require vierbergenlars/appendr:*
Register the extension with your Twig environment
Example
API
All methods are chainable (except the getters).
Assuming headTitle
is an instance of appendr.
headTitle().append('Title')
(Same asheadTitle('Title', 'APPEND')
)headTitle().prepend('Title')
(Same asheadTitle('Title', 'PREPEND')
)headTitle().set('New Title')
(Same asheadTitle('New Title', 'SET')
)headTitle().getSeparator()
headTitle().setSeparator('~')
headTitle().getDefaultAttachOrder()
headTitle().setDefaultAttachOrder('APPEND')
(Also'PREPEND'
and'SET'
)headTitle().getPattern()
headTitle().setPattern('_/°° %s °°\_')
(printf syntax, the pattern is used for each part that is added)
Default options can be passed when registering the Twig function.
All versions of appendr with dependencies
PHP Build Version
Package Version
No informations.
The package vierbergenlars/appendr contains the following files
Loading the files please wait ....