makfly/beacon-sdk-php
Composer 安装命令:
composer require makfly/beacon-sdk-php
包简介
Beacon telemetry SDK for PHP / Symfony 8 — errors, traces, logs. Home-grown, zero external instrumentation dependency.
README 文档
README
Beacon telemetry SDK for PHP / Symfony 8 — errors, traces, logs. Home-grown,
zero external instrumentation dependency (no open-telemetry/*, no sentry/*).
Ships as a Symfony bundle; the PHP namespace is KevStudios\Beacon\.
composer require makfly/beacon-sdk-php
Before the package is on Packagist, add a VCS repository to your
composer.json:"repositories": [{ "type": "vcs", "url": "https://github.com/MakFly/beacon-sdk-php.git" }]
Symfony setup
1. Register the bundle — config/bundles.php:
KevStudios\Beacon\Symfony\BeaconBundle::class => ['dev' => true, 'prod' => true],
dev+prodonly (nottest) keeps your test suite free of outbound telemetry calls.
2. Configure — config/packages/beacon.yaml:
when@dev: &beacon beacon: endpoint: '%env(BEACON_ENDPOINT)%' # required — ingester base URL token: '%env(BEACON_TOKEN)%' # required — project token service_name: 'my-app' # optional when@prod: *beacon
Other options (with defaults): service_version (null), stage (%kernel.environment%),
application_path (%kernel.project_dir%), collect_arguments (true),
traces_sample_rate (1.0), censor_keys (password, authorization, cookie, token, secret, api_key).
Unhandled kernel exceptions are captured automatically; the buffer flushes on kernel.terminate.
The transport swallows every failure — telemetry never breaks the host app.
Versioning & release
SemVer via git tags (Packagist-driven). See CLAUDE.md. Tags are immutable.
License
MIT. Part of the Beacon telemetry suite.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-16