This repository implements the OpsFlow API in PHP (Laravel or Slim) and focuses on production-grade patterns like async processing, outbox publishing, and multi-tenant isolation.
- PHP API routing and validation.
- Worker process for task execution and retries.
- Outbox publisher for reliable event emission.
- Observability hooks (logs, metrics, tracing).
- Install PHP 8.2+ and Composer.
- Install deps:
composer install. - Run API:
php -S localhost:8000 -t public. - Run tests:
composer test.
flowchart LR
API[API Service] --> DB[(Postgres)]
API --> Q[Redis Queue]
Q --> W[Worker Service]
W --> DB
API --> P[Outbox Publisher]
P --> DB
P --> BUS[Event Bus]
- OpsFlow spec: https://github.com/sean-rowe/opsflow-spec
- Local copy:
openapi.yamlanddocs/spec.md