Download the PHP package quagga/twig-view without Composer
On this page you can find all versions of the php package quagga/twig-view. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package twig-view
Slim Framework Twig View
This is a Slim Framework view helper built on top of the Twig templating component. You can use this component to create and render templates in your Slim Framework application.
Install
Via Composer
Requires Slim Framework 4, Twig 3 and PHP 7.4 or newer.
Usage
Without container
Custom template functions
TwigExtension
provides these functions to your Twig templates:
url_for()
- returns the URL for a given route. e.g.: /hello/worldfull_url_for()
- returns the URL for a given route. e.g.: http://www.example.com/hello/worldis_current_url()
- returns true is the provided route name and parameters are valid for the current path.current_url()
- returns the current path, with or without the query string.get_uri()
- returns theUriInterface
object from the incomingServerRequestInterface
objectbase_path()
- returns the base path.
You can use url_for
to generate complete URLs to any Slim application named route and use is_current_url
to determine if you need to mark a link as active as shown in this example Twig template:
Tests
To execute the test suite, you'll need to clone the repository and install the dependencies.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of twig-view with dependencies
psr/http-message Version ^1.1
quagga/slim Version ^4.12
twig/twig Version ^3.8
symfony/polyfill-php81 Version ^1.29