congraph / workflows
There is no license information available for the latest version (v2.0.3) of this package.
v2.0.3
2026-04-11 09:08 UTC
Requires
- php: ^8.3 || ^8.4 || ^8.5
- congraph/contracts: ^2.0 || dev-main || dev-master
- congraph/core: ^2.0 || dev-main || dev-master
Requires (Dev)
- orchestra/testbench: 11.x-dev
- phpunit/phpunit: ^12.0
This package is auto-updated.
Last update: 2026-04-12 09:55:14 UTC
README
congraph/workflows manages workflow definitions and workflow points used to model state machines for content.
Responsibilities
- workflow CRUD
- workflow-point CRUD
- validation of transitions and workflow metadata
- repository bindings for workflow state definitions
This package is used by eav to handle entity statuses and localized workflow states.
Installation
composer require congraph/workflows
Laravel package provider:
Typical usage
Use workflows to define:
- editorial states like draft, review, published
- localized workflow paths
- state endpoints used by entities
Development
Install dependencies
cd /Users/nikolap/git/np/congraph/packages/workflows
composer update -W
Run tests
composer test
composer test:pgsql
The package has both unit coverage and database-backed integration coverage.
Contribution notes
- prefer PostgreSQL-safe SQL and seeders
- workflow behavior changes should include validator and repository tests
- when changing status logic, also retest
eavandentity-elastic