czproject / events
This package is abandoned and no longer maintained.
No replacement package was suggested.
Events manager.
v1.0.0
2018-03-21 12:40 UTC
Requires
- php: >=5.4.0
Requires (Dev)
- nette/tester: ^1.7
This package is auto-updated.
Last update: 2023-04-13 15:59:23 UTC
README
Events manager.
Installation
Download a latest package or use Composer:
composer require czproject/events
CzProject\Events requires PHP 5.4.0 or later.
Usage
<?php $events = new CzProject\Events\Events(array( 'click', 'before-delete', )); $events->addHandler('click', function () { // ... }); $events->addHandler('before-delete', function (Entity\Post $post) { // ... }); $events->fireEvent('click'); $events->fireEvent('before-delete', $post);
License: New BSD License
Author: Jan Pecha, https://www.janpecha.cz/