定制 logtide/sdk-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

logtide/sdk-php

Composer 安装命令:

composer create-project logtide/sdk-php

包简介

LogTide PHP SDK monorepo - log management, tracing, and observability

README 文档

README

LogTide Logo

LogTide PHP SDK

Release License CI

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 Packagist Core client, hub, transports, and utilities
logtide/logtide-laravel Packagist Laravel integration
logtide/logtide-symfony Packagist Symfony Bundle
logtide/logtide-slim Packagist Slim 4 middleware
logtide/logtide-wordpress Packagist 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 我们能提供哪些服务?
定制开发 / 二次开发

基于 logtide/sdk-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 31
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-12