承接 bardh78/laravel-sigma 相关项目开发

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

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

bardh78/laravel-sigma

最新稳定版本:v0.2.0

Composer 安装命令:

composer require bardh78/laravel-sigma

包简介

Laravel Sigma Package

README 文档

README

Opinionated Laravel helper package that, in local/development, adds a "Copy Error" button to Laravel's exception page (copies the error message and file:line).

Requirements

  • PHP: ^8.1
  • Laravel (illuminate/support): ^10.0 | ^11.0 | ^12.0

See composer.json for full constraints.

Installation

Install via Composer:

composer require bardh78/laravel-sigma

This package supports Laravel Package Auto-Discovery, so you do not need to manually register the service provider.

Configuration

Publish the configuration file if you want to customize defaults:

php artisan vendor:publish --tag=config --provider="Bardh78\\LaravelSigma\\LaravelSigmaServiceProvider"

This will create config/sigma.php with:

return [
    'enabled' => env('SIGMA_ENABLED', true),
];

You can control the package via environment variable:

SIGMA_ENABLED=true

Usage

Local error page enhancement

When your app runs in the local or development environment, the service provider binds a custom exception renderer that adds a convenient "Copy Error" button to the exception page. The button copies the error message and the originating file path with line number (e.g., app/Services/Foo.php:123) to your clipboard.

No additional setup or public API is required—this is enabled automatically when the environment matches and sigma.enabled is true.

Versioning

This package follows semantic versioning where possible. Refer to releases for changes.

License

The MIT License (MIT). See the LICENSE file for details.

Credits

  • Author: Bardhyl Fejzullahu
  • Package: bardh78/laravel-sigma

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-17