Download the PHP package cboxdk/laravel-operations without Composer
On this page you can find all versions of the php package cboxdk/laravel-operations. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cboxdk/laravel-operations
More information about cboxdk/laravel-operations
Files in cboxdk/laravel-operations
Package laravel-operations
Short Description Durable, multi-step operations for Laravel — a strict state machine with per-step progress, idempotent retries, and a stall sweep.
License MIT
Informations about the package laravel-operations
Cbox Operations
Durable, multi-step operations for Laravel — the operations engine behind long-running background work. Track a deploy, a provisioning run, or an import as a first-class record with a strict state machine, per-step progress, idempotent retries, and a stall sweep — instead of a black-box job.
Every change dispatches an OperationUpdated event, so a client can watch
progress live without polling. Re-running a step or a completion is a safe no-op
(at-least-once workers never double-apply).
Why
Background work that spans several steps usually collapses to a single job with
no visible progress and no way to tell "stuck" from "slow". Cbox Operations gives
that work an auditable status (pending → running → completed | failed),
per-step timing, and a deadline so a crashed worker self-heals into a terminal
failed rather than a stuck running forever.
Install
Schedule the stall sweep so past-deadline operations self-heal:
Design
- Contracts-first. Depend on
Cbox\Operations\Contracts\Operations, never the concrete manager — so you can decorate it and tests can swap the bundled fake. - Deny-by-default state machine. Illegal transitions throw; terminal states never move.
- Tenancy-agnostic.
tenant_idis an optional column the package simply persists — bring your own scoping. - Broadcast-agnostic.
OperationUpdatedis a plain event; wire it to your own transport if you want live UI. - Dogfooded testing. Ship
InteractsWithOperations+FakeOperationsand use them in your own suite:
Documentation
Full docs live in /docs: quickstart, architecture, the state
machine, cookbook recipes, extension points, and the security/scope notes.
License
MIT © Cbox
All versions of laravel-operations with dependencies
illuminate/console Version ^12.0 || ^13.0
illuminate/contracts Version ^12.0 || ^13.0
illuminate/database Version ^12.0 || ^13.0
illuminate/events Version ^12.0 || ^13.0
illuminate/support Version ^12.0 || ^13.0
nesbot/carbon Version ^3.0