Finite A PHP5.3+ Finite State Machine Finite is a state machine library that gives statefulness to your PHP objects by defining a states and transitions graph applicable to these objects. Install $ curl -s http://getcomposer.org/installer | php $ php composer.phar init $ php composer.phar require yohang/finite View on Github <?php $document = new MyDocument; $stateMachine = new Finite\StateMachine