Doctrine2 behavior adding a finite state machine in your entities.
The state machine implementation used is Finite.
Install the behavior adding kphoen/doctrine-state-machine
to your composer.json or from CLI:
php composer.phar require kphoen/doctrine-state-machine
Just launch the following command:
./bin/phpspec run
This behavior is released under the MIT license.