echoproxy/sdk-laravel
最新稳定版本:v0.2.0
Composer 安装命令:
composer require echoproxy/sdk-laravel
包简介
Laravel SDK for EchoProxy — captures HTTP traffic and ships it to ingest-api. Server middleware + Guzzle middleware + proxy-mode client.
README 文档
README
Laravel/PHP SDK for the EchoProxy HTTP observability platform.
Install
composer require echoproxy/sdk-laravel
ECHOPROXY_API_KEY=sk_live_xxx ECHOPROXY_ENDPOINT=http://localhost:8081
Capture inbound requests
bootstrap/app.php (Laravel 11):
->withMiddleware(function ($middleware) { $middleware->append(\Sidtrack\Sdk\Middleware\CaptureRequests::class); })
Kernel::$middleware (Laravel 10):
\Sidtrack\Sdk\Middleware\CaptureRequests::class,
Capture outbound HTTP
use GuzzleHttp\Client as Guzzle; use GuzzleHttp\HandlerStack; use Sidtrack\Sdk\Client; use Sidtrack\Sdk\Http\GuzzleMiddleware; $stack = HandlerStack::create(); $stack->push(GuzzleMiddleware::create(app(Client::class))); $guzzle = new Guzzle(['handler' => $stack]);
Redaction
The SDK ships with the same defense-in-depth scrub list as the Go reference:
Authorization,Cookie,X-Api-Key,X-Auth-Token,X-CSRF-Token, …- JSON fields:
password,token,secret,api_key,credit_card, … - Patterns: JWT, Bearer, AWS keys, Stripe, GitHub, Google API, Slack, Luhn-validated cards.
Extend in config/echoproxy.php:
'redact' => [ 'extra_headers' => ['X-Customer-Email'], 'extra_json_fields' => ['account_number'], ],
ingest-api re-applies the same rules server-side, so misconfiguration here is not a wire-leak risk.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-11