carlosocarvalho/event

package for events, codeigniter, laravel frameworks, subscriber
68 1
Install
composer require carlosocarvalho/event
Latest Version:1.0.1
License:GPL
Last Updated:May 6, 2017
Links: GitHub  ·  Packagist
Maintainer: carlosocarvalho

Events fire

Is simple observable events for php

Codacy Badge Latest Stable Version Total Downloads Latest Unstable Version License

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');