An open API service indexing awesome lists of open source software.

https://github.com/chubbyphp/chubbyphp-http-exception

Creates http exceptions which can be catched and converted to error responses.
https://github.com/chubbyphp/chubbyphp-http-exception

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# chubbyphp-http-exception

[![CI](https://github.com/chubbyphp/chubbyphp-http-exception/actions/workflows/ci.yml/badge.svg)](https://github.com/chubbyphp/chubbyphp-http-exception/actions/workflows/ci.yml)
[![Coverage Status](https://coveralls.io/repos/github/chubbyphp/chubbyphp-http-exception/badge.svg?branch=master)](https://coveralls.io/github/chubbyphp/chubbyphp-http-exception?branch=master)
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fchubbyphp%2Fchubbyphp-http-exception%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/chubbyphp/chubbyphp-http-exception/master)
[![Latest Stable Version](https://poser.pugx.org/chubbyphp/chubbyphp-http-exception/v)](https://packagist.org/packages/chubbyphp/chubbyphp-http-exception)
[![Total Downloads](https://poser.pugx.org/chubbyphp/chubbyphp-http-exception/downloads)](https://packagist.org/packages/chubbyphp/chubbyphp-http-exception)
[![Monthly Downloads](https://poser.pugx.org/chubbyphp/chubbyphp-http-exception/d/monthly)](https://packagist.org/packages/chubbyphp/chubbyphp-http-exception)

[![bugs](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-http-exception&metric=bugs)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-http-exception)
[![code_smells](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-http-exception&metric=code_smells)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-http-exception)
[![coverage](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-http-exception&metric=coverage)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-http-exception)
[![duplicated_lines_density](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-http-exception&metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-http-exception)
[![ncloc](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-http-exception&metric=ncloc)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-http-exception)
[![sqale_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-http-exception&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-http-exception)
[![alert_status](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-http-exception&metric=alert_status)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-http-exception)
[![reliability_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-http-exception&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-http-exception)
[![security_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-http-exception&metric=security_rating)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-http-exception)
[![sqale_index](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-http-exception&metric=sqale_index)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-http-exception)
[![vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-http-exception&metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-http-exception)

## Description

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

## Requirements

* php: ^8.2

## Installation

Through [Composer](http://getcomposer.org) as [chubbyphp/chubbyphp-http-exception][1].

```bash
composer require chubbyphp/chubbyphp-http-exception "^1.2"
```

## Usage

```php
'value1',
'key2' => 'value2'
], $exception);
```

## Copyright

2025 Dominik Zogg

[1]: https://packagist.org/packages/chubbyphp/chubbyphp-http-exception