Download the PHP package lelyfoto/twig-instanceof without Composer
On this page you can find all versions of the php package lelyfoto/twig-instanceof. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download lelyfoto/twig-instanceof
More information about lelyfoto/twig-instanceof
Files in lelyfoto/twig-instanceof
Download lelyfoto/twig-instanceof
More information about lelyfoto/twig-instanceof
Files in lelyfoto/twig-instanceof
Vendor lelyfoto
Package twig-instanceof
Short Description Adds InstanceOf Expression as Twig Extension
License MIT
Homepage https://github.com/lelyfoto/twig-instanceof
Package twig-instanceof
Short Description Adds InstanceOf Expression as Twig Extension
License MIT
Homepage https://github.com/lelyfoto/twig-instanceof
Please rate this library. Is it a good library?
Informations about the package twig-instanceof
Twig InstanceOf Expression
Adds InstanceOf Expression as Twig Extension. When you want to check for a specific type of variable in a twig template.
Prerequisites
- PHP 8.0+
- Symfony 5.4 or 6.x
- Twig 3.x
Installation
-
Install this Symfony bundle with composer:
- Make sure the bundle is added to
config/bundles.php
:
Usage
Important to note that when testing for a class that you must use quotes and escaping inside the twig templates.
Use without Symfony
All versions of twig-instanceof with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
symfony/framework-bundle Version ^5.4 || ^6.0 || ^7.0
twig/twig Version ^3.0
symfony/framework-bundle Version ^5.4 || ^6.0 || ^7.0
twig/twig Version ^3.0
The package lelyfoto/twig-instanceof contains the following files
Loading the files please wait ....