makfly/beacon-sdk-php 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

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 bundleconfig/bundles.php:

KevStudios\Beacon\Symfony\BeaconBundle::class => ['dev' => true, 'prod' => true],

dev+prod only (not test) keeps your test suite free of outbound telemetry calls.

2. Configureconfig/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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-16