logtide / sdk-php
LogTide PHP SDK monorepo - log management, tracing, and observability
v0.7.2
2026-03-19 20:54 UTC
Requires
- php: ^8.1
Requires (Dev)
- guzzlehttp/guzzle: ^7.8
- illuminate/contracts: ^10.0 || ^11.0 || ^12.0
- illuminate/http: ^10.0 || ^11.0 || ^12.0
- illuminate/support: ^10.0 || ^11.0 || ^12.0
- monolog/monolog: ^3.0
- php-stubs/wordpress-stubs: ^6.9
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.5
- psr/http-message: ^1.1 || ^2.0
- psr/http-server-middleware: ^1.0
- psr/log: ^3.0
- slim/psr7: ^1.6
- slim/slim: ^4.0
- squizlabs/php_codesniffer: ^3.8
- symfony/config: ^6.4 || ^7.0
- symfony/console: ^6.4 || ^7.0
- symfony/dependency-injection: ^6.4 || ^7.0
- symfony/event-dispatcher: ^6.4 || ^7.0
- symfony/http-kernel: ^6.4 || ^7.0
This package is not auto-updated.
Last update: 2026-03-19 20:57:23 UTC
README
LogTide PHP SDK
Official PHP SDKs for LogTide - self-hosted log management with distributed tracing, error capture, and breadcrumbs for every major framework.
Packages
| Package | Version | Description |
|---|---|---|
logtide/logtide |
Core client, hub, transports, and utilities | |
logtide/logtide-laravel |
Laravel integration | |
logtide/logtide-symfony |
Symfony Bundle | |
logtide/logtide-slim |
Slim 4 middleware | |
logtide/logtide-wordpress |
WordPress integration |
Quick Start
Every framework package follows the same pattern - pass your DSN and service name:
# Install for your framework composer require logtide/logtide-laravel # Laravel composer require logtide/logtide-symfony # Symfony composer require logtide/logtide-slim # Slim 4 composer require logtide/logtide-wordpress # WordPress composer require logtide/logtide # Core (standalone)
// Every integration follows the same pattern: \LogTide\init([ 'dsn' => 'https://lp_your_key@your-logtide-instance.com', 'service' => 'my-app', ]); // Or use api_url + api_key separately: \LogTide\init([ 'api_url' => 'https://your-logtide-instance.com', 'api_key' => 'lp_your_key', 'service' => 'my-app', ]);
See each package's README for framework-specific setup instructions.
Architecture
logtide/logtide ← Core: Client, Hub, Scope, Transports, Integrations
↓
├── logtide/logtide-laravel ← Laravel ServiceProvider, Middleware, Log Channel
├── logtide/logtide-symfony ← Symfony Bundle, Event Subscribers
├── logtide/logtide-slim ← Slim 4 PSR-15 Middleware
└── logtide/logtide-wordpress ← WordPress hooks & integrations
All framework packages share logtide/logtide core for:
- Distributed tracing (W3C Trace Context /
traceparent) - Error serialization with structured stack traces
- Breadcrumbs for HTTP, database, and custom events
- Batched transport with retry logic and circuit breaker
- Scope isolation per request
- Monolog integration for logging
Development
# Install dependencies composer install # Run all tests composer test # Run tests with coverage composer test:coverage # Static analysis (PHPStan level 8) composer phpstan # Code style check (PSR-12) composer cs # Code style fix composer cs:fix
Branch Model
feature/* ──> develop ──> main ──> tag v*.*.* ──> Packagist publish
hotfix/* ──> main (via PR, for urgent fixes)
See .github/BRANCH_PROTECTION.md for full details.
Contributing
Contributions are welcome! Please read CONTRIBUTING.md before opening a pull request.
License
MIT License - see LICENSE for details.
