承接 maduser/argon-whoops 相关项目开发

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

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

maduser/argon-whoops

Composer 安装命令:

composer require maduser/argon-whoops

包简介

Whoops debug error page integration for the Argon runtime stack.

README 文档

README

PHP Build codecov Psalm Level Latest Version Total Downloads License: MIT

Whoops debug error page integration for the Argon runtime stack.

Installation

composer require maduser/argon-whoops

Register

use Maduser\Argon\Whoops\Provider\WhoopsServiceProvider;

$container->register(WhoopsServiceProvider::class);

The provider registers:

  • Maduser\Argon\Whoops\Config\WhoopsConfig
  • Whoops\Run
  • Maduser\Argon\Whoops\WhoopsExceptionPolicy

WhoopsExceptionPolicy is tagged as an Argon exception policy.

Ordering

Register this provider before your application exception policy if Whoops should win for debug HTML responses.

$container->register(WhoopsServiceProvider::class);
$container->set(AppExceptionPolicy::class)
    ->tag(ExceptionPolicyInterface::class);

Argon still owns exception dispatching and reporting. Whoops only renders an HTML debug response when enabled. If disabled, or if the request does not accept HTML, the policy returns null and the next Argon renderer can handle the exception.

Configuration

Whoops is disabled by default unless the container parameters indicate a local debug application:

$parameters->set('app.env', 'local');
$parameters->set('app.debug', true);

You can override this explicitly:

use Maduser\Argon\Whoops\Config\WhoopsParameter;

$parameters->set(WhoopsParameter::ENABLED, true);
$parameters->set(WhoopsParameter::PAGE_TITLE, 'Argon Debug Exception');

Only boolean values are accepted for WhoopsParameter::ENABLED.

Quality Gates

composer check
composer test:coverage
composer psalm
composer phpcs

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固