orisai / phpstan-nette
PHPStan understands Nette DI containers, Nette Forms, Latte templates and how they connect
Package info
github.com/orisai/phpstan-nette
Type:phpstan-extension
pkg:composer/orisai/phpstan-nette
v1.x-dev
2026-10-01 01:05 UTC
Requires
- php: 7.4 - 8.4
- latte/latte: ^2.11.7 || ^3.0.0
- nette/application: ^3.1.15
- nette/component-model: ^3.0.3
- nette/di: ^3.1.3
- nette/forms: ^3.1.15
- nette/schema: ^1.2.0
- nette/utils: ^3.2.0 || ^4.0.0
- phpstan/phpstan: ^2.2.0
- symfony/polyfill-php80: ^1.20
Requires (Dev)
- brianium/paratest: ^6.3.0
- composer/semver: ^3.0.0
- cweagans/composer-patches: ^1.7.0
- kdyby/forms-replicator: ^2.0.0 || ^3.0.0
- nette/caching: ^3.1.4
- nette/neon: ^3.3.1
- nette/security: ^3.1
- nikic/php-parser: ^5.7.0
- orisai/coding-standard: ^3.0.0
- phpbench/phpbench: ^1.0.0
- phpstan/extension-installer: ^1.0.0
- phpstan/phpstan-deprecation-rules: ^2.0.0
- phpstan/phpstan-nette: ^2.0.8
- phpstan/phpstan-phpunit: ^2.0.0
- phpstan/phpstan-strict-rules: ^2.0.0
- phpunit/phpunit: ^9.5.0
- shipmonk/dead-code-detector: ^0.15.0
- staabm/annotate-pull-request-from-checkstyle: ^1.7.0
- symfony/process: ^5.4|^6.0|^7.0
Suggests
- kdyby/forms-replicator: Typed replicator containers and rows
- shipmonk/dead-code-detector: Container service and template-only method usage detection
Provides
None
Conflicts
- kdyby/forms-replicator: <2.0.0
- latte/latte: >=3.2.0
Replaces
None
This package is auto-updated.
Last update: 2026-10-01 01:38:07 UTC
README
PHPStan Nette
PHPStan understands Nette DI containers, Nette Forms, Latte templates and how they connect
📄 Check out our documentation.
💸 If you like Orisai, please make a donation. Thank you!
parameters: # with phpstan/phpstan-nette: patch it and switch its extensions off (see docs); without it, remove these three lines netteComponentModelDynamicReturnType: false netteFormContainerValuesDynamicReturnType: false netteServiceLocatorDynamicReturnType: false fileExtensions: [php, latte] orisai: nette: latte: enabled: true dic: containerLoader: %currentWorkingDirectory%/tests/phpstan/container-loader.php
// tests/phpstan/container-loader.php return App\Bootstrap::boot()->createContainer();
... and more.