package for events, codeigniter, laravel frameworks, subscriber
67
1
2
Package Data
Maintainer Username: carlosocarvalho
Maintainer Contact: contato@carlosocarvalhoo.com.br (Carlos Carvalho)
Package Create Date: 2017-05-06
Package Last Update: 2017-05-06
Home Page:
Language: PHP
License: GPL
Last Refreshed: 2024-12-11 15:11:06
Package Statistics
Total Downloads: 67
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

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