yiistack/events

Yii event dispatcher attributes

Fund package maintenance!
Patreon

dev-master / 1.0.x-dev 2022-09-11 18:08 UTC

This package is auto-updated.

Last update: 2024-11-11 22:31:57 UTC


README

YiiStack Events


Latest Stable Version Total Downloads Build status Scrutinizer Code Quality Code Coverage Mutation testing badge static analysis type-coverage

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