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');
Classes of carlos carvalho | > | Observable PHP Event Listener and Emitter | > | Download .zip .tar.gz | > | Support forum | > | Blog | > | Latest changes |
|
|
Groups | Applications | Files |
Groups |
PHP 5 | Classes using PHP 5 specific features | View top rated classes |
Language | Constructs to assist in the language control | View top rated classes |
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Files |
File | Role | Description | ||
---|---|---|---|---|
spec (1 file) | ||||
src (4 files) | ||||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
index.php | Example | Example script | ||
readme.md | Doc. | Example script | ||
_config.yml | Data | Auxiliary data |
Files | / | src |
File | Role | Description |
---|---|---|
DoubleEventException.php | Class | Class source |
Emitter.php | Class | Class source |
Listener.php | Class | Class source |
SubscribeContract.php | Class | Class source |
Download all files: php-event.tar.gz php-event.zip NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
|