logtide/sdk-php
Composer 安装命令:
composer create-project logtide/sdk-php
包简介
LogTide PHP SDK monorepo - log management, tracing, and observability
README 文档
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.
Links
logtide/sdk-php 适用场景与选型建议
logtide/sdk-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 01 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 logtide/sdk-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 logtide/sdk-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 31
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-12
