echoproxy/sdk-laravel

Laravel SDK for EchoProxy — captures HTTP traffic and ships it to ingest-api. Server middleware + Guzzle middleware + proxy-mode client.

Maintainers

Package info

github.com/songhieu/echoproxy-sdk-laravel

Homepage

Issues

Documentation

pkg:composer/echoproxy/sdk-laravel

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

v0.2.0 2026-05-11 05:57 UTC

This package is auto-updated.

Last update: 2026-05-11 06:06:30 UTC


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.