| 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: | 2025-10-30 03:10:06 |
| Package Statistics | |
|---|---|
| Total Downloads: | 68 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 1 |
| Total Watchers: | 1 |
| 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');