{"id":15650131,"url":"https://github.com/cornernote/yii2-workflow-manager","last_synced_at":"2025-07-07T21:33:17.315Z","repository":{"id":55942203,"uuid":"65706612","full_name":"cornernote/yii2-workflow-manager","owner":"cornernote","description":"Workflow Manager for Yii2","archived":false,"fork":false,"pushed_at":"2020-12-05T13:00:01.000Z","size":52,"stargazers_count":37,"open_issues_count":4,"forks_count":19,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-28T10:54:08.626Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cornernote.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-15T05:25:47.000Z","updated_at":"2024-08-07T14:24:29.000Z","dependencies_parsed_at":"2022-08-15T10:00:37.704Z","dependency_job_id":null,"html_url":"https://github.com/cornernote/yii2-workflow-manager","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornernote%2Fyii2-workflow-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornernote%2Fyii2-workflow-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornernote%2Fyii2-workflow-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornernote%2Fyii2-workflow-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cornernote","download_url":"https://codeload.github.com/cornernote/yii2-workflow-manager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248975299,"owners_count":21192199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T12:33:27.751Z","updated_at":"2025-04-14T22:50:34.953Z","avatar_url":"https://github.com/cornernote.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yii2 Workflow Manager\n\n[![Latest Version](https://img.shields.io/github/tag/cornernote/yii2-workflow-manager.svg?style=flat-square\u0026label=release)](https://github.com/cornernote/yii2-workflow-manager/tags)\n[![Software License](https://img.shields.io/badge/license-BSD-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![Build Status](https://img.shields.io/travis/cornernote/yii2-workflow-manager/master.svg?style=flat-square)](https://travis-ci.org/cornernote/yii2-workflow-manager)\n[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/cornernote/yii2-workflow-manager.svg?style=flat-square)](https://scrutinizer-ci.com/g/cornernote/yii2-workflow-manager/code-structure)\n[![Quality Score](https://img.shields.io/scrutinizer/g/cornernote/yii2-workflow-manager.svg?style=flat-square)](https://scrutinizer-ci.com/g/cornernote/yii2-workflow-manager)\n[![Total Downloads](https://img.shields.io/packagist/dt/cornernote/yii2-workflow-manager.svg?style=flat-square)](https://packagist.org/packages/cornernote/yii2-workflow-manager)\n\nWorkflow Manager for Yii2. Extends [Yii2-Workflow](https://github.com/raoul2000/yii2-workflow/) to provide an interface to manage workflows.\n\n![screenshot](https://cloud.githubusercontent.com/assets/51875/17660161/a351c124-6316-11e6-8e2b-28340fe6dc8d.png)\n\n\n## Features\n\n* Create and manage workflows, statuses and transitions using a simple interface.\n* Manage metadata for each status to allow additional data such as colors and icons.\n* Displays the workflow transitions using [Yii2 Workflow View](https://github.com/raoul2000/yii2-workflow-view)\n\n\n## Installation\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```\n$ composer require cornernote/yii2-workflow-manager \"*\"\n```\n\nor add\n\n```\n\"cornernote/yii2-workflow-manager\": \"*\"\n```\n\nto the `require` section of your `composer.json` file.\n\n\n## Migrations\n\n```\n$ php yii migrate --migrationPath=@cornernote/workflow/manager/migrations\n```\n\n\n## Configuration\n\n```php\n$config = [\n    'components' =\u003e [\n        'workflowSource' =\u003e [\n            'class' =\u003e 'cornernote\\workflow\\manager\\components\\WorkflowDbSource',\n        ],\n    ],\n    'modules' =\u003e [\n        'workflow' =\u003e [\n            'class' =\u003e 'cornernote\\workflow\\manager\\Module',\n        ],\n    ],\n];\n```\n\n\n## Usage\n\nSimply visit `?r=workflow` within your application to start managing workflows.\n\nOnce you have defined a workflow, you can attach it to a model as follows:\n\n```php\nclass Post extends \\yii\\db\\ActiveRecord\n{\n    public function behaviors()\n    {\n        return [\n            [\n                'class' =\u003e \\raoul2000\\workflow\\base\\SimpleWorkflowBehavior::className(),\n                'defaultWorkflowId' =\u003e 'post',\n                'propagateErrorsToModel' =\u003e true,\n            ],\n        ];\n    }\n}\n```\n\n\n## License\n\n- Author: Brett O'Donnell \u003ccornernote@gmail.com\u003e\n- Source Code: https://github.com/cornernote/yii2-workflow-manager\n- Copyright © 2016 Mr PHP \u003cinfo@mrphp.com.au\u003e\n- License: BSD-3-Clause https://raw.github.com/cornernote/yii2-workflow-manager/master/LICENSE\n\n\n## Links\n\n- [Yii2 Extension](http://www.yiiframework.com/extension/yii2-workflow-manager)\n- [Composer Package](https://packagist.org/packages/cornernote/yii2-workflow-manager)\n- [MrPHP](http://mrphp.com.au)\n\n\n[![Mr PHP](https://raw.github.com/cornernote/mrphp-assets/master/img/code-banner.png)](http://mrphp.com.au) \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcornernote%2Fyii2-workflow-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcornernote%2Fyii2-workflow-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcornernote%2Fyii2-workflow-manager/lists"}