carlosocarvalho / event
package for events, codeigniter, laravel frameworks, subscriber
1.0.1
2017-05-06 12:39 UTC
Requires (Dev)
- kahlan/kahlan: ^3.1
This package is auto-updated.
Last update: 2024-11-29 05:03:33 UTC
README
Is simple observable events for php
Install
composer require carlosocarvalho/event
usage
<?php $emitter = \COC\Event\Emitter::getInstance(); $emitter->on('evm.createdUser', function($name, $lastname){ print("hello {$lastname}, {$name} welcome!!"); }); $emitter->emit('evm.createdUser','Firstname','Lastname');