package for events, codeigniter, laravel frameworks, subscriber

1.0.1 2017-05-06 12:39 UTC

This package is auto-updated.

Last update: 2021-08-29 02:08:31 UTC


README

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