Download the PHP package fergusinlondon/events without Composer

On this page you can find all versions of the php package fergusinlondon/events. 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 events

Events: A simple events registry and handling system

Build Status Test Coverage Code Climate Issue Count

This is an incredibly simple events registry and handling system, which is composed of a total of two objects: a registry object, and a subclassable base handler.

The primary intention behind this project was for a three part blog post about writing small modular components, packaging them as composer modules and subsequently using a continuous integration system to ensure their status.

Despite this original intention, if you need an incredibly lightweight system for registering and handling events, then this will most likely suffice!

On the other hand, if you're powering something that is larger and has an excess of events, then you may wish to consider an option which compiles your events in to a map - allowing better performance.

Blog Post(s)

The blog posts are not yet written, but will be made available on Fergus.London.

Installation

Install via Composer, as fergusinlondon/events.

$ composer require fergusinlondon/events=dev-master

Warning: This development build of composer is over 60 days old. It is recommended to update it by running "/usr/local/bin/composer self-update" to get the latest version.
./composer.json has been updated

Loading composer repositories with package information

Updating dependencies (including require-dev)

  • Installing fergusinlondon/events (dev-master b245be2)
    Cloning b245be2bae5e546cbd33a279c17ff0652aca33f8

Example:

The best form of documentation is usually an example.

Basic

A basic example could be a User registration/creation event, whereby when a user signs up to your application an event is fired that allows other parts of the application to respond in some way.

Meanwhile, in our associated controller we would simply trigger the event when required..

Full API

Alternatively, the example below demonstrates the entirety of the API and feature-set. There are public methods open on these objects which should not be used: and are there for registry<->handler communications. These methods will be marked as such in the source code.

Testing

Testing is done via PHPSpec, and tests that the public interface works as expected - but makes no guarantees as to the internal workings. As such, if you wish to use this project please stick to the public API as seen in the above example(s).

A full build history for this project is available on Travis CI.

License

All code contained in this repository is licensed under The MIT License.

Copyright © 2016 Fergus Morrow [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


All versions of events with dependencies

PHP Build Version
Package Version
No informations.
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 fergusinlondon/events contains the following files

Loading the files please wait ....