Repository navigation
Releases
v13.0.0
Laravel 13 support, with the same API and behavior as 12.0.0, including the Laravel Boost resources.
Requirements
| 12.0.0 | 13.0.0 | |
|---|---|---|
| PHP | 8.2, 8.3, 8.4, 8.5 | 8.3, 8.4, 8.5 |
| Laravel | 12.0+ | 13.0+ |
Full Changelog: 12.0.0...13.0.0
v12.0.0
Laravel 12 support, with the same API and behavior as 11.0.0, including the Laravel Boost resources.
Requirements
| 11.0.0 | 12.0.0 | |
|---|---|---|
| PHP | 8.2, 8.3, 8.4 | 8.2, 8.3, 8.4, 8.5 |
| Laravel | 11.0+ | 12.0+ |
Full Changelog: 11.0.0...12.0.0
v11.0.0
Laravel 11 support, with the same API and behavior as 10.0.0, including the Laravel Boost resources. The docs follow Laravel 11's application structure (bootstrap/app.php, routes/console.php).
Requirements
| 10.0.0 | 11.0.0 | |
|---|---|---|
| PHP | 8.1, 8.2, 8.3 | 8.2, 8.3, 8.4 |
| Laravel | 10.0+ | 11.0+ |
Full Changelog: 10.0.0...11.0.0
v10.0.0
Laravel 10 support, with the same API and behavior as 9.0.0. The package is now AI ready: it ships Laravel Boost resources, so php artisan boost:install teaches your coding agent the whole package.
Requirements
| 9.0.0 | 10.0.0 | |
|---|---|---|
| PHP | 8.0, 8.1, 8.2 | 8.1, 8.2, 8.3 |
| Laravel | 9.33+ | 10.0+ |
Full Changelog: 9.0.0...10.0.0
v9.0.0
Laravel 9 support, with the same API and behavior as 8.0.0, now also on PHP 8.2. Laravel 9.33 is the floor: the first 9.x release that requires a Carbon release working on PHP 8.2.
Requirements
| 8.0.0 | 9.0.0 | |
|---|---|---|
| PHP | 8.0, 8.1 | 8.0, 8.1, 8.2 |
| Laravel | 8.75+ | 9.33+ |
Full Changelog: 8.0.0...9.0.0
v8.0.0
Laravel 8 support, with the same API and behavior as 7.0.0, now also on PHP 8.1.
Requirements
| 7.0.0 | 8.0.0 | |
|---|---|---|
| PHP | 8.0 | 8.0, 8.1 |
| Laravel | 7.30+ | 8.75+ |
Full Changelog: 7.0.0...8.0.0
v7.0.0
Laravel 7 support, with the same API and behavior as 6.0.0.
Requirements
| 6.0.0 | 7.0.0 | |
|---|---|---|
| PHP | 8.0 | 8.0 |
| Laravel | 6.20+ | 7.30+ |
Full Changelog: 6.0.0...7.0.0
v6.0.0
The first release of Laravel API Idempotency, on the Laravel 6 line: opt-in HTTP idempotency for Laravel routes, with fail-closed recovery.
What's included
- One route macro:
Route::post(...)->idempotent(), also onRoute::resource()andapiResource(), and theidempotentmiddleware alias with an optional ttl. Routes stay compatible withroute:cache. - The
Idempotency-Keycontract: keys of 1 to 255 visible ASCII characters, scoped per principal through aScopeResolver(the authenticated user by default), with request fingerprints of the method, path, query string and JSON body throughpharaonic/php-fingerprint. - Atomic reservation in the database (a unique insert, with a publishable migration) or Redis (Lua scripts, phpredis and predis).
- Exact replay of
2xxJSON or empty responses with their safe headers andIdempotency-Replayed: true; other4xxresponses release the key. - Fail closed: server errors, exceptions, unstorable responses, abandoned leases and store outages never lead to a second run. Refused requests throw
IdempotencyExceptionwith a stable error code. IdempotentRequestReserved,IdempotentRequestReplayed,IdempotentRequestRejectedandIdempotentRequestUnresolvedevents, and theidempotency:prunecommand. Logs never carry the client's key, the user or the body.
Requirements
| 6.0.0 | |
|---|---|
| PHP | 8.0 |
| Laravel | 6.20+ |
Full Changelog: https://github.com/Pharaonic/laravel-api-idempotency/commits/6.0.0