stewart-php / phpstan
PHPStan rules that check Home Assistant entity IDs and action names against a Stewart project's generated classes
Requires
- php: >=8.5.12
- composer-runtime-api: ^2.2
- phpstan/phpstan: ^2.3
- stewart-php/contracts: v2.0.0
- stewart-php/support: v2.0.0
Requires (Dev)
- phpunit/phpunit: ^13.3
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-23 22:36:34 UTC
README
PHPStan rules for a Stewart project: entity IDs and action names written in the code are checked against the classes
stewart generate wrote, so getState('light.kitchn') or callAction('light.turn_onn') fails make stan instead of
an automation at run time.
composer config allow-plugins.phpstan/extension-installer true
composer require --dev stewart-php/phpstan phpstan/extension-installer
Part of Stewart: Home Assistant automations in PHP. Start a project from stewart-php/skeleton rather than requiring packages one by one.
Documentation: stewart-php.github.io/docs.
This repository is a read-only split of the monorepo. Open issues and pull requests at stewart-php/stewart.
License
MIT; see LICENSE.