PHPackages                             kellenon/yii2-event - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. kellenon/yii2-event

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

kellenon/yii2-event
===================

Package

05.0k↓49.5%PHP

Since Mar 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Kellenon/yii2-event)[ Packagist](https://packagist.org/packages/kellenon/yii2-event)[ RSS](/packages/kellenon-yii2-event/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

 [ ![Yii Framework](https://camo.githubusercontent.com/4cd87085016c60897e465251b1c7e1ae76dbc7333916c1d9743165621ac38555/68747470733a2f2f7777772e7969696672616d65776f726b2e636f6d2f696d6167652f64657369676e2f6c6f676f2f796969335f7369676e2e737667) ](https://www.yiiframework.com/)

Yii2 Event
==========

[](#yii2-event)

##### Convenient event system for Yii2.

[](#convenient-event-system-for-yii2)

This component will help create a system of events, which will be as simple to use as a system of events in [Laravel](https://laravel.com/docs/8.x/events).

Installation
------------

[](#installation)

To install, either run

```
composer require kellenon/yii2-event
```

or add

```
"kellenon/yii2-event": "@dev"

```

to the `require` section of your `composer.json` file.

Usage
-----

[](#usage)

You can attach a behavior to a component and declare events and listeners in it.

The listener class must implement the interface `EventListenerInterface`

### Behaviors

[](#behaviors)

**EventBehavior**

```
