Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.188.39.197
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-test /
vendor /
evenement /
evenement /
Delete
Unzip
Name
Size
Permission
Date
Action
doc
[ DIR ]
drwxr-xr-x
2017-07-23 21:35
examples
[ DIR ]
drwxr-xr-x
2017-07-23 21:35
src
[ DIR ]
drwxr-xr-x
2017-07-23 21:35
tests
[ DIR ]
drwxr-xr-x
2017-07-23 21:35
.gitignore
21
B
-rw-r--r--
2017-07-23 21:35
.travis.yml
513
B
-rw-r--r--
2017-07-23 21:35
CHANGELOG.md
1.46
KB
-rw-r--r--
2017-07-23 21:35
LICENSE
1.03
KB
-rw-r--r--
2017-07-23 21:35
README.md
1.57
KB
-rw-r--r--
2017-07-23 21:35
composer.json
662
B
-rw-r--r--
2017-07-23 21:35
phpunit.xml.dist
639
B
-rw-r--r--
2017-07-23 21:35
Save
Rename
# Événement Événement is a very simple event dispatching library for PHP. It has the same design goals as [Silex](http://silex-project.org) and [Pimple](http://pimple-project.org), to empower the user while staying concise and simple. It is very strongly inspired by the EventEmitter API found in [node.js](http://nodejs.org). [](http://travis-ci.org/igorw/evenement) ## Fetch The recommended way to install Événement is [through composer](http://getcomposer.org). Just create a composer.json file for your project: ```JSON { "require": { "evenement/evenement": "^3.0 || ^2.0" } } ``` **Note:** The `3.x` version of Événement requires PHP 7 and the `2.x` version requires PHP 5.4. If you are using PHP 5.3, please use the `1.x` version: ```JSON { "require": { "evenement/evenement": "^1.0" } } ``` And run these two commands to install it: $ curl -s http://getcomposer.org/installer | php $ php composer.phar install Now you can add the autoloader, and you will have access to the library: ```php <?php require 'vendor/autoload.php'; ``` ## Usage ### Creating an Emitter ```php <?php $emitter = new Evenement\EventEmitter(); ``` ### Adding Listeners ```php <?php $emitter->on('user.created', function (User $user) use ($logger) { $logger->log(sprintf("User '%s' was created.", $user->getLogin())); }); ``` ### Emitting Events ```php <?php $emitter->emit('user.created', [$user]); ``` Tests ----- $ ./vendor/bin/phpunit License ------- MIT, see LICENSE.