633labs / 633logs-sdk-php
Official 633Logs PHP/Laravel SDK for HMAC-signed exception and log ingest
v1.0.0
2026-07-16 06:20 UTC
Requires
- php: ^8.1
- ext-curl: *
- ext-json: *
Requires (Dev)
- phpunit/phpunit: ^10.0
README
Official PHP client for 633Logs — exception tracking and structured log ingest.
Repository: github.com/633labs/633logs-sdk-php
Install
composer require 633labs/633logs-sdk-php
Laravel package auto-discovery registers the service provider and Logs633 facade.
Publish config (optional):
php artisan vendor:publish --tag=logs633-config
Environment
LOGS633_CLIENT_KEY=your-client-key LOGS633_CLIENT_SECRET=your-client-secret LOGS633_ENABLED=true LOGS633_ENVIRONMENT=production LOGS633_RELEASE=v1.0.0 LOGS633_SERVICE=api
Quick start
use LabsLogs\Facades\Logs; Logs::captureException($e); Logs::error('payment failed', ['order_id' => 123]); Logs::flush();
Automatic exception reporting: extend LabsLogs\LogsExceptionHandler from your app exception handler.
Features
- HMAC-SHA256 request signing
- Exception, message, and structured log ingest
- Batch ingest
- Scopes, tags, context, breadcrumbs
- Sensitive-field scrubbing
- Sampling, retries, buffered flush
- Optional Laravel queue delivery (
LOGS633_QUEUE=true) before_send_exception/before_send_loghooks- Request context middleware
Authentication
Requests are signed as HMAC-SHA256(secret, timestamp + "." + body) with headers:
X-Client-KeyX-TimestampX-Signature
Default endpoint: https://logs.633labs.com/api
Requirements
- PHP 8.1+
ext-curl,ext-json- Laravel 8+ (for provider / facade / middleware; core client works in plain PHP)
License
MIT