2017 © Pedro Peláez
 

library chaingang

Chain-of-Responsibility / Chain-of-Command pattern in PHP.

image

ehough/chaingang

Chain-of-Responsibility / Chain-of-Command pattern in PHP.

  • Monday, November 30, 2015
  • by ehough
  • Repository
  • 2 Watchers
  • 4 Stars
  • 6,684 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 2 % Grown

The README.md

chaingang Build Status

Chain-of-Responsibility/Chain-of-Command pattern for PHP 5.2+, (*1)

Sample Usage

/*
 * Build some commands.
 */
$command1 = new MyCommand1();   //implements ehough_chaingang_api_Command
$command2 = new MyCommand2();   //implements ehough_chaingang_api_Command

/*
 * Build and assemble the chain.
 */
$chain = new ehough_chaingang_impl_StandardChain();
$chain->addCommand($command1);
$chain->addCommand($command2);

/*
 * Build the execution context.
 */
$context = new ehough_chaingang_impl_StandardContext();
$context->put('foo', 'bar');

/*
 * Execute the chain.
 */
$successfullyHandled = $chain->execute($context);

The Versions

30/11 2015

dev-develop

dev-develop https://github.com/ehough/chaingang

Chain-of-Responsibility / Chain-of-Command pattern in PHP.

  Sources   Download

MPL-2.0

The Requires

  • php >=5.2.0

 

The Development Requires

28/03 2013

dev-master

9999999-dev https://github.com/ehough/chaingang

Chain-of-Responsibility / Chain-of-Command pattern in PHP.

  Sources   Download

MPL-2.0

The Requires

  • php >=5.2.0

 

The Development Requires

28/03 2013

1.0.3

1.0.3.0 https://github.com/ehough/chaingang

Chain-of-Responsibility / Chain-of-Command pattern in PHP.

  Sources   Download

MPL-2.0

The Requires

  • php >=5.2.0

 

The Development Requires

18/03 2013

1.0.2

1.0.2.0 https://github.com/ehough/chaingang

Chain of Responsibility pattern in PHP.

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.1.0

 

The Development Requires

11/07 2012

1.0.1

1.0.1.0 https://github.com/ehough/chaingang

Chain of Responsibility pattern in PHP.

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.1.0

 

The Development Requires

08/07 2012

1.0.0

1.0.0.0 https://github.com/ehough/chaingang

Chain of Responsibility pattern in PHP.

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.1.0

 

The Development Requires