Download the PHP package nhatnathando/laravel-api-replay without Composer
On this page you can find all versions of the php package nhatnathando/laravel-api-replay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package laravel-api-replay
๐ Laravel API Replay
Record incoming HTTP requests and responses, store them efficiently, and replay any request accurately for debugging and comparison via a modern Dashboard.
โจ Features
- โก Middleware Recording: Automatically capture Request/Response details.
- ๐ฅ๏ธ Dashboard UI: Visual interface to browse logs and trigger replays (default at
/api-replay). - ๐ก๏ธ Production Safety: Automatic DB Rollback for dry-run replays to keep your data safe.
- ๐ Sensitive Data Masking: Automatically masks passwords and sensitive headers.
- ๐ฏ Accurate Replay: Reconstructs requests using the Laravel HTTP client.
- ๐๏ธ Artisan Command: Still supports
php artisan replay:request {uuid}.
๐ฆ Installation
- Install via composer:
-
Publish configuration, migrations, and UI views:
- Run migrations:
๐ Usage
1. Register Middleware
Add the middlewares to your app/Http/Kernel.php (or bootstrap/app.php for Laravel 11+):
2. Dashboard UI
Access the dashboard at /api-replay in your browser. You can:
- View all recorded API calls.
- Compare original response vs replay response.
- Enable Dry Run Mode to simulate the request without persisting DB changes.
3. Programmatic Safety
Use the ApiReplay helper to skip side-effects (like sending real emails) during a replay:
โ๏ธ Configuration
Check config/api-replay.php for options:
enabled: Toggle recording.log_response: Enable/disable response body logging.sensitive_headers: List of headers to mask.sensitive_fields: List of JSON fields to mask.
๐งช Testing
All versions of laravel-api-replay with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
illuminate/support Version ^9.0|^10.0|^11.0
illuminate/http Version ^9.0|^10.0|^11.0
illuminate/database Version ^9.0|^10.0|^11.0
illuminate/console Version ^9.0|^10.0|^11.0
illuminate/support Version ^9.0|^10.0|^11.0
illuminate/http Version ^9.0|^10.0|^11.0
illuminate/database Version ^9.0|^10.0|^11.0
illuminate/console Version ^9.0|^10.0|^11.0
The package nhatnathando/laravel-api-replay contains the following files
Loading the files please wait ...