Download the PHP package alexmasterov/twig-extension without Composer
On this page you can find all versions of the php package alexmasterov/twig-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download alexmasterov/twig-extension
More information about alexmasterov/twig-extension
Files in alexmasterov/twig-extension
Download alexmasterov/twig-extension
More information about alexmasterov/twig-extension
Files in alexmasterov/twig-extension
Vendor alexmasterov
Package twig-extension
Short Description A collection of custom extensions for the Twig template engine
License MIT
Homepage https://github.com/AlexMasterov/twig-extension
Package twig-extension
Short Description A collection of custom extensions for the Twig template engine
License MIT
Homepage https://github.com/AlexMasterov/twig-extension
Please rate this library. Is it a good library?
Informations about the package twig-extension
Twig Extension(s)
A collection of custom extensions for the Twig template engine.
Extensions
Psr7UriExtension
— provides useful functions using PSR-7 HTTP message interface.
Function | Description |
---|---|
absolute_url |
Generate an absolute URL for the given absolute or relative path |
relative_path |
Generate a relative path based on the current path of the URI |
Installation
The suggested installation method is via composer:
Configuration
To activate an extension you need to register it into the Twig environment:
The example of registering the extension using Auryn and Diactoros:
All versions of twig-extension with dependencies
PHP Build Version
Package Version
The package alexmasterov/twig-extension contains the following files
Loading the files please wait ....