An open API service indexing awesome lists of open source software.

https://github.com/angyvolin/silex-workflow

Silex service provider for symfony/workflow component
https://github.com/angyvolin/silex-workflow

php silex silex-provider workflow

Last synced: 6 months ago
JSON representation

Silex service provider for symfony/workflow component

Awesome Lists containing this project

README

          

# WorkflowServiceProvider [![SensioLabsInsight](https://insight.sensiolabs.com/projects/c7b71caa-7264-4e8b-85b2-879c675bde5f/mini.png)](https://insight.sensiolabs.com/projects/c7b71caa-7264-4e8b-85b2-879c675bde5f) [![License](https://poser.pugx.org/angyvolin/silex-workflow/license)](https://packagist.org/packages/angyvolin/silex-workflow) [![Latest Stable Version](https://poser.pugx.org/angyvolin/silex-workflow/v/stable)](https://packagist.org/packages/angyvolin/silex-workflow) [![Total Downloads](https://poser.pugx.org/angyvolin/silex-workflow/downloads)](https://packagist.org/packages/angyvolin/silex-workflow)

Silex 2.* service provider for Symfony Workflow component.

[![silex-workflow-image](https://github.com/angyvolin/silex-workflow-demo/blob/master/web/img/workflow.png)](https://github.com/angyvolin/silex-workflow-demo)

## About
The Workflow component provides tools for managing a workflow or finite state machine. [symfony/workflow](https://github.com/symfony/workflow) was introduced in Symfony 3.2.

## Installation
`composer require angyvolin/silex-worflow`

> To be able to use twig helpers you also require a [symfony/twig-bridge](https://github.com/symfony/twig-bridge) package:
>
> `composer require symfony/twig-bridge`

## Configuration
Register the service and pass workflow configuration:

```php
register(new WorkflowServiceProvider(), array(
'workflow.config' => $workflowConfig,
));

```

## Usage
See [silex-workflow-demo](https://github.com/angyvolin/silex-workflow-demo)

## Tests

composer install
phpunit

## License
[MIT License](LICENSE.md)