Download the PHP package aaronjunker/sssm without Composer
On this page you can find all versions of the php package aaronjunker/sssm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download aaronjunker/sssm
More information about aaronjunker/sssm
Files in aaronjunker/sssm
Download aaronjunker/sssm
More information about aaronjunker/sssm
Files in aaronjunker/sssm
Vendor aaronjunker
Package sssm
Short Description Super simple state machine
License MIT
Homepage https://github.com/Aaron-Junker/sssm
Package sssm
Short Description Super simple state machine
License MIT
Homepage https://github.com/Aaron-Junker/sssm
Please rate this library. Is it a good library?
Informations about the package sssm
SSSM - Super simple state machine for PHP
Report issues
Please open a new issue to report a bug or request a new feature.
Installation
View package on packagist.
Usage
1. Include SSSM
2. Create the states
Syntax:
Both arguments are optional. But a name is highly recommended.
Example:
3. Create the state machine
Syntax:
Example:
4. Add state events (optional)
Syntax:
Example:
5. Loop state
Syntax:
6. Switch state
Syntax:
Example:
7. Get current state
Syntax:
Example:
Full example
All versions of sssm with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0.0
The package aaronjunker/sssm contains the following files
Loading the files please wait ....