Download the PHP package metabor/statemachine without Composer

On this page you can find all versions of the php package metabor/statemachine. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package statemachine

metabor/statemachine

Statemachine in PHP 5.6 / PHP 7

Support

Gitter

Gitter chat

Continuous Integration/Deployment

TravisCI

Build Status

Open Issues

Open Issues

Package Information

Packagist

Packagist Packagist Packagist Packagist

Compatibility

MetaborStd Version

Dependency Status

VersionEye

Dependency Status

Test Coverage

Scrutinizer

Code Coverage

Code Quality

Codeship

Codeship Status

Codacy

Codacy

Code Climate

Code Climate

Scrutinizer

Scrutinizer Code Quality

SensioLabsInsight

SensioLabsInsight

Other

License Gittip

Quickstart examples

Once installed, let's use a sample statemachine:

Features

This library implements a finite-state machine in PHP 5.3.

It was first developed for a talk at a conference. The example from my talk is available on Github and Packagist as metabor/statemachine-example.

In the namespace MetaborStd are abstract types defined that are exemplified implemented in this project. If you have to implement or use a statemachine in your project, feel free to either use this libary at all or replace the parts that didn't fit your needs by using the MetaborStd Interfaces.

Process Graph Drawing

The library supports visualizing of the process graph by using clue/graph and GraphViz "Graph Visualization Software".

Install

The recommended way to install this library is through composer. New to composer?

Optional recommendation: In order to be able to use the process graph drawing feature you'll have to install GraphViz (dot executable). Users of Debian/Ubuntu-based distributions may simply invoke sudo apt-get install graphviz, Windows users have to download GraphViZ for Windows and remaining users should install from GraphViz homepage. To use this feature you also have to add this to your composer.json:

An example how to draw and display the graph, can be found in metabor/statemachine-example.

Tests

This library uses phpunit for its extensive testsuite. You can either use a global installation or rely on the one composer installs when you first run $ composer install. This sets up the developer environment, so that you can now run it from the project root directory:

Contributing

If you encounter any issues, please don't hesitate to drop us a line, file a bug report or even best provide us with a patch / pull request and/or unit test to reproduce your problem.

Besides directly working with the code, any additional documentation, additions to our readme or even fixing simple typos are appreciated just as well.

Any feedback and/or contribution is welcome!

License

Released under the terms of the permissive MIT license.


All versions of statemachine with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
metabor/metabor-std Version ~2.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package metabor/statemachine contains the following files

Loading the files please wait ....