2017 © Pedro Peláez
 

library event

CakePHP event dispatcher library that helps implementing the observer pattern

image

cakephp/event

CakePHP event dispatcher library that helps implementing the observer pattern

  • Wednesday, June 6, 2018
  • by cakephp
  • Repository
  • 29 Watchers
  • 12 Stars
  • 33,079 Installations
  • PHP
  • 5 Dependents
  • 2 Suggesters
  • 4 Forks
  • 0 Open issues
  • 100 Versions
  • 7 % Grown

The README.md

Total Downloads License, (*1)

CakePHP Event Library

This library emulates several aspects of how events are triggered and managed in popular JavaScript libraries such as jQuery: An event object is dispatched to all listeners. The event object holds information about the event, and provides the ability to stop event propagation at any point. Listeners can register themselves or can delegate this task to other objects and have the chance to alter the state and the event itself for the rest of the callbacks., (*2)

Usage

Listeners need to be registered into a manager and events can then be triggered so that listeners can be informed of the action., (*3)

use Cake\Event\Event;
use Cake\Event\EventDispatcherTrait;

class Orders
{

    use EventDispatcherTrait;

    public function placeOrder($order)
    {
        $this->doStuff();
        $event = new Event('Orders.afterPlace', $this, [
            'order' => $order
        ]);
        $this->getEventManager()->dispatch($event);
    }
}

$orders = new Orders();
$orders->getEventManager()->on(function ($event) {
    // Do something after the order was placed
    ...
}, 'Orders.afterPlace');

$orders->placeOrder($order);

The above code allows you to easily notify the other parts of the application that an order has been created. You can then do tasks like send email notifications, update stock, log relevant statistics and other tasks in separate objects that focus on those concerns., (*4)

Documentation

Please make sure you check the official documentation, (*5)

The Versions

06/06 2018

dev-master

9999999-dev https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

 

cakephp dispatcher event observer pattern

06/06 2018

3.6.5

3.6.5.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

 

cakephp dispatcher event observer pattern

06/06 2018

3.6.6

3.6.6.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

 

cakephp dispatcher event observer pattern

06/06 2018

3.6.7

3.6.7.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

 

cakephp dispatcher event observer pattern

06/06 2018

3.6.8

3.6.8.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

 

cakephp dispatcher event observer pattern

06/06 2018

3.6.9

3.6.9.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

 

cakephp dispatcher event observer pattern

30/04 2018

3.6.3

3.6.3.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

 

cakephp dispatcher event observer pattern

30/04 2018

3.6.4

3.6.4.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

 

cakephp dispatcher event observer pattern

01/04 2018

dev-3.next

dev-3.next https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

 

cakephp dispatcher event observer pattern

01/04 2018

3.6.0

3.6.0.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

 

cakephp dispatcher event observer pattern

01/04 2018

3.6.0-RC2

3.6.0.0-RC2 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

 

cakephp dispatcher event observer pattern

01/04 2018

3.6.1

3.6.1.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

 

cakephp dispatcher event observer pattern

01/04 2018

3.6.2

3.6.2.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

 

cakephp dispatcher event observer pattern

23/02 2018

3.6.0-beta1

3.6.0.0-beta1 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

 

cakephp dispatcher event observer pattern

23/02 2018

3.6.0-beta2

3.6.0.0-beta2 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

 

cakephp dispatcher event observer pattern

23/02 2018

3.6.0-beta3

3.6.0.0-beta3 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

 

cakephp dispatcher event observer pattern

23/02 2018

3.6.0-RC1

3.6.0.0-RC1 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

 

cakephp dispatcher event observer pattern

20/02 2018

3.5.13

3.5.13.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

20/02 2018

3.5.14

3.5.14.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

20/02 2018

3.5.15

3.5.15.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

20/02 2018

3.5.x-dev

3.5.9999999.9999999-dev https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

20/02 2018

3.5.17

3.5.17.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

17/12 2017

3.5.9

3.5.9.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

17/12 2017

3.5.10

3.5.10.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

17/12 2017

3.5.11

3.5.11.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

17/12 2017

3.5.12

3.5.12.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

28/07 2017

3.5.0

3.5.0.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

28/07 2017

3.5.0-RC2

3.5.0.0-RC2 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

28/07 2017

3.5.1

3.5.1.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

28/07 2017

3.5.2

3.5.2.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

28/07 2017

3.5.3

3.5.3.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

28/07 2017

3.5.4

3.5.4.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

28/07 2017

3.5.5

3.5.5.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

28/07 2017

3.5.6

3.5.6.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

28/07 2017

3.5.7

3.5.7.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

28/07 2017

3.5.8

3.5.8.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

11/06 2017

3.5.0-RC1

3.5.0.0-RC1 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

11/06 2017

3.4.10

3.4.10.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

11/06 2017

3.4.11

3.4.11.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

11/06 2017

3.4.12

3.4.12.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

11/06 2017

3.4.13

3.4.13.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

11/06 2017

3.4.8

3.4.8.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

11/06 2017

3.4.9

3.4.9.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

11/06 2017

3.4.x-dev

3.4.9999999.9999999-dev https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

11/06 2017

3.4.14

3.4.14.0 https://cakephp.org

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp dispatcher event observer pattern

16/05 2017

3.4.7

3.4.7.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

17/04 2017

3.4.6

3.4.6.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

11/03 2017

3.4.4

3.4.4.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

11/03 2017

3.4.5

3.4.5.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

22/02 2017

3.4.2

3.4.2.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

22/02 2017

3.4.3

3.4.3.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

28/01 2017

3.4.0

3.4.0.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

28/01 2017

3.4.0-RC4

3.4.0.0-RC4

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

28/01 2017

3.4.1

3.4.1.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

22/01 2017

3.3.13

3.3.13.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

22/01 2017

3.3.14

3.3.14.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

22/01 2017

3.3.15

3.3.15.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

22/01 2017

3.3.16

3.3.16.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

14/01 2017

3.4.0-RC3

3.4.0.0-RC3

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

13/01 2017

3.4.0-RC1

3.4.0.0-RC1

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

13/01 2017

3.4.0-RC2

3.4.0.0-RC2

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

27/12 2016

3.4.0-beta1

3.4.0.0-beta1

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

27/12 2016

3.4.0-beta2

3.4.0.0-beta2

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

27/12 2016

3.4.0-beta3

3.4.0.0-beta3

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

27/12 2016

3.4.0-beta4

3.4.0.0-beta4

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

12/09 2016

3.3.10

3.3.10.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

12/09 2016

3.3.11

3.3.11.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

12/09 2016

3.3.12

3.3.12.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

12/09 2016

3.3.4

3.3.4.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

12/09 2016

3.3.5

3.3.5.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

12/09 2016

3.3.6

3.3.6.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

12/09 2016

3.3.7

3.3.7.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

12/09 2016

3.3.8

3.3.8.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

12/09 2016

3.3.9

3.3.9.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

23/08 2016

3.3.3

3.3.3.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

13/08 2016

3.3.0

3.3.0.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

13/08 2016

3.3.1

3.3.1.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

13/08 2016

3.3.2

3.3.2.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

10/08 2016

3.2.14

3.2.14.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

14/07 2016

3.3.0-beta2

3.3.0.0-beta2

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

14/07 2016

3.3.0-beta3

3.3.0.0-beta3

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

14/07 2016

3.3.0-RC1

3.3.0.0-RC1

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

13/07 2016

3.2.13

3.2.13.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

06/07 2016

3.3.0-beta

3.3.0.0-beta

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

02/06 2016

3.2.11

3.2.11.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

02/06 2016

3.2.12

3.2.12.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

11/03 2016

3.2.10

3.2.10.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

11/03 2016

3.2.5

3.2.5.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

11/03 2016

3.2.6

3.2.6.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

11/03 2016

3.2.7

3.2.7.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

11/03 2016

3.2.8

3.2.8.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

11/03 2016

3.2.9

3.2.9.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

19/02 2016

3.2.3

3.2.3.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

19/02 2016

3.2.4

3.2.4.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

09/02 2016

3.2.2

3.2.2.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

28/01 2016

3.1.x-dev

3.1.9999999.9999999-dev

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

28/01 2016

dev-3-1

dev-3-1

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

28/01 2016

3.1.10

3.1.10.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

28/01 2016

3.1.13

3.1.13.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT

28/01 2016

3.1.9

3.1.9.0

CakePHP event dispatcher library that helps implementing the observer pattern

  Sources   Download

MIT