Recommend this page to a friend! |
Download |
Info | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
59% | Total: 263 | All time: 7,781 This week: 39 |
Version | License | PHP version | Categories | |||
event-mediator 2.0.1 | GNU General Publi... | 7.0 | Libraries, Design Patterns, PHP 7, Tr... |
Description | Author | |||
This package allows to emit and listen to events using a mediator object. Innovation Award
|
<br/><br/> Travis-ci: <br/> Scrutinizer-ci: <br/> Coveralls:
A general event mediator (dispatcher) with minimal dependencies so it is easy to drop in and use.
The recommended way to install Event-Mediator is using Composer from Packagist with:
composer require dragonrun1/event-mediator
You can also get it as a zip file from GitHub.
Licensing information can be found in the LICENSE file.
Most people might know event mediator as an event dispatcher instead and both names would have worked. The reason I choose to call it a mediator is it follows the mediator pattern. For those of you that are familiar with Symfony 2 and it's EventDispatcher component then Event Mediator started out as basically a drop in replace for it without the (IMHO) huge dependence overhead often seen with Symfony components. Event Mediator has since grown into something better since then I think.
To get a better understanding about Event-Mediator and how you might use it check out Understanding Event-Mediator
* Started new 2.0-dev branch with many BC breaking changes. * The 1.0 series is now end of life and all application developers should update to newer 2.0 versions ASAP. If your code only used the listener methods the move should be easy with few changes needed. If application uses any of the subscriber stuff you will need to update the returned event array to reflect the new expected format.
For a more complete understand of the changes refer to the commit messages and new code.
Files (36) |
File | Role | Description | ||
---|---|---|---|---|
.phpspec (2 files) | ||||
docs (1 file) | ||||
specs (1 directory) | ||||
src (10 files) | ||||
.coveralls.yml | Data | Auxiliary data | ||
.mailmap | Data | Auxiliary data | ||
.php_cs | Data | Auxiliary data | ||
.scrutinizer.yml | Data | Auxiliary data | ||
.travis.yml | Data | Auxiliary data | ||
behat.yml | Data | Auxiliary data | ||
bootstrap.php | Conf. | Configuration script | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
phpdoc.dist.xml | Data | Auxiliary data | ||
phpspec.yml.dist | Data | Auxiliary data | ||
phpspec_coverage.yml | Data | Auxiliary data | ||
README.md | Data | Description | ||
ruleset.xml | Data | Auxiliary data |
Files (36) | / | .phpspec |
File | Role | Description |
---|---|---|
class.tpl | Data | Auxiliary data |
specification.tpl | Data | Auxiliary data |
Files (36) | / | specs | / | Spec |
File | Role | Description |
---|---|---|
EventSpec.php | Test | Unit test script |
EventTraitSpec.php | Test | Unit test script |
MediatorSpec.php | Test | Unit test script |
MockEventTrait.php | Test | Unit test script |
MockListener.php | Test | Unit test script |
MockListenerInterface.php | Test | Unit test script |
MockServiceSubscriber.php | Class | Class source |
MockSubscriber.php | Test | Unit test script |
PimpleContainerMediatorSpec.php | Test | Unit test script |
Files (36) | / | src |
File | Role | Description |
---|---|---|
AbstractContainerMediator.php | Class | Class source |
ContainerMediatorInterface.php | Class | Class source |
Event.php | Class | Class source |
EventInterface.php | Class | Class source |
EventTrait.php | Class | Class source |
Mediator.php | Class | Class source |
MediatorInterface.php | Class | Class source |
PimpleContainerMediator.php | Class | Class source |
ServiceSubscriberInterface.php | Class | Class source |
SubscriberInterface.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
User Ratings | User Comments (1) | ||||||||||||||||||||||||||||||||||
|
|
Applications that use this package |
Yet Another Php Eve Api Library Next Generation |
If you know an application of this package, send a message to the author to add a link here.