chubbyphp/chubbyphp-http-exception 问题修复 & 功能扩展

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

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

chubbyphp/chubbyphp-http-exception

最新稳定版本:1.3.0

Composer 安装命令:

composer require chubbyphp/chubbyphp-http-exception

包简介

Creates http exceptions which can be catched and converted to error responses.

README 文档

README

CI Coverage Status Mutation testing badge Latest Stable Version Total Downloads Monthly Downloads

bugs code_smells coverage duplicated_lines_density ncloc sqale_rating alert_status reliability_rating security_rating sqale_index vulnerabilities

Description

Creates http exceptions which can be catched and converted to error responses.

Requirements

  • php: ^8.3

Installation

Through Composer as chubbyphp/chubbyphp-http-exception.

composer require chubbyphp/chubbyphp-http-exception "^1.3"

Usage

<?php

declare(strict_types=1);

namespace App;

use Chubbyphp\HttpException\HttpException;

$exception = new \RuntimeException('error');

$httpException = HttpException::createBadRequest([
    'key1' => 'value1',
    'key2' => 'value2'
], $exception);

Copyright

2025 Dominik Zogg

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-09-18