juststeveking/api-toolbox
A Laravel toolkit for building and documenting consistent APIs, with helpers for responses, errors, and OpenAPI-ready resources that keep endpoint code clean and predictable.
Prefer/PATCH semantics, locking and retries, webhooks, and request/response signing. These are commodity concerns where in-house implementations reliably diverge across teams; this is a candidate "adopt, don't build" decision.Features flags also make it a staged rollout decision: enable capability by capability rather than a big-bang API rewrite.api-toolbox-development skill mean coding agents receive correct, package-specific instructions on first contact. Combined with the test that verifies every referenced class, constant, middleware alias, assertion and method exists and every snippet parses, this is a concrete argument for (or against) treating agent-readiness as a procurement criterion in your toolchain.php artisan about section (version, per-feature on/off incl. experimental flags, signature key IDs and algorithms — never secrets or key paths) is a first-class operational decision: it determines how fast on-call can triage a signing or feature-flag issue, and it demonstrates a security-conscious default for diagnostics output.Features::EXPERIMENTAL list gives a defensible way to phase adoption: ship GA features to production now, hold experimental ones behind a flag until you have bandwidth for minor-release churn.Consider adoption when:
artisan about during incidents without shelling into secret stores.Look elsewhere or defer when:
0.x release; anything marked Features::EXPERIMENTAL may change in a minor release. If you need LTS guarantees or a frozen public contract, that is a real constraint, not a detail.For executives (one paragraph): We are standardizing the repetitive, error-prone parts of our APIs — how errors are reported, how clients retry safely, how requests are signed, how lists paginate. That work is currently rebuilt per service, which is where most cross-team inconsistency and post-incident rework comes from. This package replaces that bespoke effort with a maintained Laravel-native implementation, and its newest release adds two things that directly reduce our cost of ownership: machine-readable operational visibility (artisan about reports version, enabled features and signing-key algorithms — never secrets), and first-class guidance for the AI coding agents our engineers already use, with automated tests that keep that guidance factually accurate. Risk is bounded and explicit: it is pre-1.0, and the package itself enumerates which features are experimental and may shift in a minor release, so we can adopt the stable surface now and gate the rest. Recommended decision: pilot on one API in the next cycle and evaluate against the stable feature set.
For engineering leads: The agent-facing guideline plus the api-toolbox-development skill are the headline. A test asserts every class, constant, middleware alias, assertion and method the docs mention actually exists, and that every PHP snippet parses — so the documentation cannot silently rot, and agents stop hallucinating our API surface. php artisan about --only=api_toolbox gives on-call a single command for feature state and key IDs/algorithms without touching secrets. The Features::EXPERIMENTAL constant gives us a clean dependency policy: pin the stable features, review minor bumps before enabling experimental ones. Digest problem types are now generated from the live apiguide.dev catalogue with unchanged type URIs, so this release is additive with no response-contract breakage.
Ask: Approve a scoped pilot (one service, stable features only) with a re-review at the next minor release.
How can I help you explore Laravel packages today?