yiistack / events
Yii event dispatcher attributes
Fund package maintenance!
Patreon
Requires
- php: ^8.0
- rustamwin/attributes: dev-master
- yiisoft/di: ^1.0
- yiisoft/event-dispatcher: ^1.0
- yiisoft/injector: ^1.0
Requires (Dev)
- phpunit/phpunit: ^9.5
- roave/infection-static-analysis-plugin: ^1.15
- spatie/phpunit-watcher: ^1.23
- vimeo/psalm: ^4.18
This package is auto-updated.
Last update: 2024-10-11 22:17:17 UTC
README
YiiStack Events
The package provides PHP Attributes for yiisoft/event-dispatcher that can be used to listen events.
Requirements
- PHP 8.0 or higher.
Installation
The package could be installed with composer:
composer require yiistack/events --prefer-dist
General usage
Unit testing
The package is tested with PHPUnit. To run tests:
./vendor/bin/phpunit
Mutation testing
The package tests are checked with Infection mutation framework. To run it:
./vendor/bin/roave-infection-static-analysis-plugin
Static analysis
The code is statically analyzed with Psalm. To run static analysis:
./vendor/bin/psalm