package for events, codeigniter, laravel frameworks, subscriber

1.0.1 2017-05-06 12:39 UTC

This package is auto-updated.

Last update: 2024-11-29 05:03:33 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');