承接 lampyra/laravel 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

lampyra/laravel

Composer 安装命令:

composer require lampyra/laravel

包简介

Self-hosted, lightweight exception capture for Laravel apps. Ships exceptions to a lampyra-server instance.

README 文档

README

Composer package for shipping PHP exceptions and JavaScript errors from a Laravel app to a self-hosted Lampyra dashboard.

60-second install

composer require lampyra/laravel

Add to .env:

LAMPYRA_DSN="https://errors.your-domain.com|slk_your_ingest_token"
LAMPYRA_PUBLIC_DSN="paste_24_char_public_dsn"
LAMPYRA_ENABLED=true

Verify:

php artisan lampyra:test

For browser error capture, drop @lampyra in your main Blade layout's <head>.

Full documentation

The complete reference lives on the dashboard. Replace <your-domain> below with your deployed instance:

  • English: https://errors.<your-domain>.com/docs/en/package/01-installation
  • Deutsch: https://errors.<your-domain>.com/docs/de/package/01-installation

Topics covered there:

  • Installation, configuration, env vars
  • The lampyra:test command
  • Payload structure and PII scrubbing
  • Local rate limit
  • JavaScript error capture via @lampyra
  • Ingest API contract
  • Troubleshooting

PII scrubbing — quick reference

The outgoing payload is scrubbed in two passes (see config/lampyra.php):

  1. Key-name pass (scrub_keys) — redacts values whose key matches a pattern. Recursive, case-insensitive, supports *suffix / prefix* wildcards. Use for known field names like password, *_secret, authorization.

  2. Value-pattern pass (scrub_value_patterns) — runs regex replacements over every string leaf. Use for PII that key matching cannot reach: data inside JSON-encoded request.body_excerpt, positional queries[].bindings, or values interpolated into exception.message. Example:

    'scrub_value_patterns' => [
        '/\b[A-Z]{2}\d{2}[A-Z0-9]{10,30}\b/' => '[iban-scrubbed]',
        '/[\w\.\-]+@[\w\-]+(?:\.[\w\-]+)+/' => '[email-scrubbed]',
    ],
  3. User email — set LAMPYRA_INCLUDE_USER_EMAIL=false to drop payload.user.email. The user id is always sent.

License

MIT.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固