teapot/status-code
teapot/status-code gives Laravel and PHP apps a clean way to reference HTTP status codes. Replace magic numbers with readable constants and helpers in responses, middleware, and tests, keeping your API consistent and self-documenting, with a touch of teapot humor.
409 for conflicting writes, 429 for quota/rate-limit UX, 410 for retired resources, 423 for locked records, 402 for billing gates. A shared vocabulary makes these decisions easier to document and test.Response constants. The PM should ask whether this package adds enough ergonomics over the framework baseline to justify one more dependency.Response constants, PSR-7 implementations, or an internal enum already cover the need. For a package this small, copying a curated constants list or writing an internal enum may be cheaper than adding a dependency.Executive summary: This is a low-cost, low-risk engineering hygiene package for consistent HTTP status-code usage. It does not create a customer-facing feature or revenue impact. Approve it only as a contained utility after a short audit, or skip it in favor of internal constants already supported by Laravel/Symfony.
Engineering summary: The package can reduce magic numbers and improve readability, static analysis, and API consistency. However, Laravel already provides Symfony Response constants, and the package has low adoption signals (45 stars, 0 dependents). Recommended path: trial it behind an internal wrapper, pin the version, and keep a fork/copy exit plan. Do not make it a platform standard without broader adoption evidence.
How can I help you explore Laravel packages today?