Download the PHP package atelierspierrot/event-manager without Composer

On this page you can find all versions of the php package atelierspierrot/event-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package event-manager

Event manager

Code Climate documentation The events manager package of Les Ateliers Pierrot

Installation

For a complete information about how to install this package and load its namespace, please have a look at our USAGE documentation.

If you are a Composer user, just add the package to the requirements of your project's composer.json manifest file:

You can use a specific release or the latest release of a major version using the appropriate version constraint.

Please note that this package depends on the externals PHP Patterns and PHP Library.

SPL interfaces

As a reminder, the SPL observer objects are:

Basics

The basic idea of an event propagation system in PHP is quite simple:

This can be implemented with an observer/observable system where the object A of the example above is observable while the B is its observer. Basically, the observable can be considered as an SplSubject as defined in the SPL interfaces above while the observer can be considered as an SplObserver. But the standard system (the SPL interfaces) only allows one single event to be triggered (or multiple events handled by the same method of the observer). We could use this basic definitions of event triggering but it forces the implementations to make a switch if the observable can trigger different events ...

The implementation in the library is ready to handle multiple events triggering allowing the observers to define the method that should be called when an event is fired. This method defaults to handleEvent(). To do so, the SplObserver interface is renamed (and rewritten) as the ObserverInterface and the SplSubject as the ObservableInterface. The event is a standalone object implementing the EventInterface:

Events manager

A kernel object is defined to handle a set of events listeners/observers for a global application: the EventManager object. It introduces two new concepts: the listeners and the subscribers.

Basically, a listener is like an observer, it references itself to the object triggering the event it want to observe, a subscriber does not references itself to each events it wants to listen, but to the global events manager, that asks it the list of events it may listen:

Author & License

Event Manager

http://github.com/atelierspierrot/event-manager

Copyright (c) 2015-2016 Pierre Cassat and contributors

Licensed under the Apache 2 license.

http://www.apache.org/licenses/LICENSE-2.0


Les Ateliers Pierrot - Paris, France

http://www.ateliers-pierrot.fr/ - [email protected]


All versions of event-manager with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
atelierspierrot/patterns Version ~1.0.9
atelierspierrot/library Version 2.0.0-BETA
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package atelierspierrot/event-manager contains the following files

Loading the files please wait ....