Download .zip |
Info | View files (36) | Download .zip | Reputation | Support forum (2) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2018-07-18 (1 month ago) | 59% | Total: 241 | All time: 7,739 This week: 306 |
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 |
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 | / | .phpspec |
File | Role | Description |
---|---|---|
class.tpl | Data | Auxiliary data |
specification.tpl | Data | Auxiliary data |
Files | / | 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 | / | 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 |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
User Ratings | User Comments (1) | ||||||||||||||||||||||||||||||||||
|
|