Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 6 days ago
JSON representation

php package for events observable - https://carlosocarvalho.github.io/php-event

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