Download the PHP package driveto/phpstan-twig without Composer
On this page you can find all versions of the php package driveto/phpstan-twig. 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 phpstan-twig
PhpStan extenstion for Twig templates
Inspired by blog series by @TomasVortuba - https://tomasvotruba.com/blog/stamp-1-how-to-compile-twig-to-php/
Known issues
- Performance
- Currently, templates are processed only sequentially
- Same templates with same variables included in multiple templates are checked multiple times
- High memory usage when depth of included templates is higher
- Method name guessing is not supported. I believe that template engine should not guess which method programmer wanted to use. Therefore, if you want to use method, use it with full name and parentheses
{{ class.fullMethodName() }}
Installation
To use this extension, require it in Composer:
Include extension.neon in your project's PHPStan config:
Add path to Twig service in phpstan.neon:
Example of Twig loader:
All versions of phpstan-twig with dependencies
PHP Build Version
Package Version
The package driveto/phpstan-twig contains the following files
Loading the files please wait ....