PHPackages                             rami/problem-detail-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. rami/problem-detail-bundle

ActiveSymfony-bundle[API Development](/categories/api)

rami/problem-detail-bundle
==========================

A Symfony bundle that implements application/problem+json to give meaning to api response errors

v1.1.2(4mo ago)0487MITPHPPHP ^8.3

Since Jul 17Pushed 4mo agoCompare

[ Source](https://github.com/abdellahrk/ProblemDetailBundle)[ Packagist](https://packagist.org/packages/rami/problem-detail-bundle)[ RSS](/packages/rami-problem-detail-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (4)Versions (10)Used By (0)

[RFC 9457](https://datatracker.ietf.org/doc/html/rfc9457): Problem Details for HTTP API
---------------------------------------------------------------------------------------

[](#rfc-9457-problem-details-for-http-api)

#### [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457): Problem Details for HTTP API deprecated by RFC 9457

[](#rfc-9457-problem-details-for-http-api-deprecated-by-rfc-9457)

Implementation of the RFC 9457 to give meaning to HTTP Response Errors

A simple bundle

### Composer installation:

[](#composer-installation)

`composer require rami/problem-detail-bundle`

example use:

```
use Symfony\Component\HttpFoundation\Response;
use Rami\ProblemDetailBundle\ProblemResponse\ProblemJsonResponse;
use Symfony\Component\HttpFoundation\JsonResponse;

class ArticleController
{

    public function addArticle(): Response
    {
        ...
        if (false === $user->canPostArticle()) {
            return new ProblemJsonResponse(Response::HTTP_FORBIDDEN, title: "Insufficient permission", detail: "You have insufficient permission to add a new article");
        }
        ...

        return new JsonResponse(['status' => 'created', 'id' => $article->getId()]);
    }
}
```

This will return an `application/problem+json` response

```
{
  "type": "about:blank",
  "title": "Insufficient permission",
  "status": 404,
  "detail": "You have insufficient permission to add a new article"
}
```

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance76

Regular maintenance activity

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~21 days

Recently: every ~33 days

Total

9

Last Release

132d ago

Major Versions

v0.3.0 → v1.0.02025-08-30

PHP version history (2 changes)v1.0.0PHP ^8.2

v1.1.2PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d6da32e287615c39411860f6a16d1805a9fca063de0dc38835eaaed7177e864?d=identicon)[Abdellah](/maintainers/Abdellah)

---

Top Contributors

[![abdellahrk](https://avatars.githubusercontent.com/u/17084652?v=4)](https://github.com/abdellahrk "abdellahrk (17 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rami-problem-detail-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/rami-problem-detail-bundle/health.svg)](https://phpackages.com/packages/rami-problem-detail-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/headless-bundle

Bundle that provides controllers and services for using Sulu as headless content management system

55133.7k2](/packages/sulu-headless-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
