Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/carlosocarvalho/php-event
php package for events observable - https://carlosocarvalho.github.io/php-event
https://github.com/carlosocarvalho/php-event
codeigniter codeigniter3 events laravel observable observer php
Last synced: about 2 months ago
JSON representation
php package for events observable - https://carlosocarvalho.github.io/php-event
- Host: GitHub
- URL: https://github.com/carlosocarvalho/php-event
- Owner: carlosocarvalho
- Created: 2017-05-06T11:36:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-06T13:17:45.000Z (over 7 years ago)
- Last Synced: 2024-10-12T07:23:43.897Z (3 months ago)
- Topics: codeigniter, codeigniter3, events, laravel, observable, observer, php
- Language: PHP
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Events fire
Is simple observable events for php[![Codacy Badge](https://api.codacy.com/project/badge/Grade/46d2a96bb25c48c6bca68629b9544174)](https://www.codacy.com/app/carlosocarvalho-git/php-event?utm_source=github.com&utm_medium=referral&utm_content=carlosocarvalho/php-event&utm_campaign=Badge_Grade) [![Latest Stable Version](https://poser.pugx.org/carlosocarvalho/event/v/stable)](https://packagist.org/packages/carlosocarvalho/event) [![Total Downloads](https://poser.pugx.org/carlosocarvalho/event/downloads)](https://packagist.org/packages/carlosocarvalho/event) [![Latest Unstable Version](https://poser.pugx.org/carlosocarvalho/event/v/unstable)](https://packagist.org/packages/carlosocarvalho/event) [![License](https://poser.pugx.org/carlosocarvalho/event/license)](https://packagist.org/packages/carlosocarvalho/event)
## Install
```php
composer require carlosocarvalho/event
```## usage
```php
on('evm.createdUser', function($name, $lastname){
print("hello {$lastname}, {$name} welcome!!");
});$emitter->emit('evm.createdUser','Firstname','Lastname');
```