2017 © Pedro Peláez
 

library tiny-state-machine

image

itinance/tiny-state-machine

  • Monday, February 8, 2016
  • by itinance
  • Repository
  • 1 Watchers
  • 0 Stars
  • 174 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

TinyStateMachine

Installation

composer require itinance/tiny-state-machine, (*1)

Usage

This StateMachine enables to set some state in an application and to request this state elsewhere, even in Twig., (*2)

Setting state:, (*3)

StateMachine::instance()->setState('Foobar');

Setting state with value:, (*4)

StateMachine::instance()->setState('Foobar', 'barfoo');

Request state:, (*5)

StateMachine::instance()->getState('Foobar' /* , $default */);

StateMachine::instance()->hasState('Foobar');
StateMachine::instance()->hasStateWithValue('Foobar', 'barfoo');

Twig:, (*6)

{% if hasState('Foobar') %}

The Versions

08/02 2016

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

by hagen huebel

08/02 2016

1.0.3

1.0.3.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by hagen huebel

08/02 2016

dev-bundle_refactoring

dev-bundle_refactoring

  Sources   Download

MIT

The Requires

 

The Development Requires

by hagen huebel

08/02 2016

1.0.2

1.0.2.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by hagen huebel

08/02 2016

0.9.0

0.9.0.0

  Sources   Download

The Requires

 

The Development Requires

by hagen huebel

08/02 2016

1.0.0

1.0.0.0

  Sources   Download

The Requires

 

The Development Requires

by hagen huebel

08/02 2016

1.0.1

1.0.1.0

  Sources   Download

The Requires

 

The Development Requires

by hagen huebel