Package Data | |
---|---|
Maintainer Username: | carlosocarvalho |
Maintainer Contact: | contato@carlosocarvalhoo.com.br (Carlos Carvalho) |
Package Create Date: | 2017-05-06 |
Package Last Update: | 2017-05-06 |
Home Page: | |
Language: | PHP |
License: | GPL |
Last Refreshed: | 2024-12-11 15:11:06 |
Package Statistics | |
---|---|
Total Downloads: | 67 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Is simple observable events for php
composer require carlosocarvalho/event
<?php
$emitter = \COC\Event\Emitter::getInstance();
$emitter->on('evm.createdUser', function($name, $lastname){
print("hello {$lastname}, {$name} welcome!!");
});
$emitter->emit('evm.createdUser','Firstname','Lastname');