tiden/php
最新稳定版本:v0.1.0
Composer 安装命令:
composer require tiden/php
包简介
Tiden error-tracking PHP SDK. Emits the envelope wire format to a Tiden ingest endpoint, with no third-party error-SDK dependency.
README 文档
README
Framework-agnostic error-tracking PHP SDK for
Tiden. Emits the
envelope wire format to a Tiden ingest endpoint — no third-party error-SDK
dependency. For Laravel, use the tiden/laravel bridge (built on this).
composer require tiden/php
use Tiden\Sdk; Sdk::init([ 'dsn' => getenv('TIDEN_DSN'), // http://<publicKey>@<host:ingestPort>/<projectId> 'release' => 'my-app@1.2.3', 'environment' => 'production', // 'send_default_pii' => false, // default: scrub likely-PII before send ]); // With captureGlobals (default), uncaught exceptions + fatals are reported // automatically. Manual capture: try { risky(); } catch (\Throwable $e) { Sdk::captureException($e); } Sdk::captureMessage('checkout completed', 'info'); Sdk::addBreadcrumb(new \Tiden\Breadcrumb('cache miss', category: 'cache')); Sdk::configureScope(fn ($s) => $s->setTag('tenant', 'acme'));
What it does
- Parses the DSN to the edge URL
/api/<projectId>/envelope/?tiden_key=…. - Normalizes
\Throwable(incl. cause chains) intoexception.values[]with stack frames (in_appheuristic, app-relative paths). - Serializes the envelope and POSTs it via curl (synchronous, never throws; honors HTTP 429 + Retry-After).
- Scrubs likely-PII (auth headers, secret-ish keys) unless
send_default_pii. before_sendhook to mutate or drop events.
Source maps are a browser concern (JS bundles); PHP isn't minified, so there is no source-map counterpart here.
Develop
composer install
composer test
MIT © Qase
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-10