PHPackages                             jonjomckay/symfony-api-problem - 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. jonjomckay/symfony-api-problem

ActiveLibrary[API Development](/categories/api)

jonjomckay/symfony-api-problem
==============================

A Symfony-compatible response for the IETF Problem Details for HTTP APIs RFC

1.0.1(11y ago)5231BSD-3-ClausePHP

Since Sep 30Pushed 11y ago1 watchersCompare

[ Source](https://github.com/jonjomckay/symfony-api-problem)[ Packagist](https://packagist.org/packages/jonjomckay/symfony-api-problem)[ RSS](/packages/jonjomckay-symfony-api-problem/feed)WikiDiscussions develop Synced 3w ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

Symfony API Problem
===================

[](#symfony-api-problem)

Introduction
------------

[](#introduction)

This library supplies a Symfony-compatible Response class, that accepts an ApiProblem object and returns a JSON object compilant with the [Problem Details for HTTP APIs](http://tools.ietf.org/html/draft-nottingham-http-problem-06) specification.

It is based on, and uses the ApiProblem class from, the [ZF Campus `zf-api-problem`](https://github.com/zfcampus/zf-api-problem) library for Zend Framework 2.

Installation
------------

[](#installation)

Run the following command to install using `composer`:

```
$ composer require "jonjomckay/symfony-api-problem:~1.0-dev"
```

Or add the following line to your `composer.json`:

```
"require": {
    "jonjomckay/symfony-api-problem": "~1.0-dev"
}
```

Usage
-----

[](#usage)

```
use JonjoMcKay\ApiProblem\ApiProblem;
use JonjoMcKay\ApiProblem\ApiProblemResponse;

class FakeController
{

    public function fetch($id)
    {
        $entity = $this->service->fetch($id);

        if (!$entity) {
            return new ApiProblemResponse(new ApiProblem(404, 'Entity not found'));
        }

        return $entity;
    }
}
```

License
-------

[](#license)

This project is released under the BSD 3-Clause license, and is based on parts of the [ZF Campus `zf-api-problem`](https://github.com/zfcampus/zf-api-problem) library for Zend Framework 2.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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 ~0 days

Total

2

Last Release

4294d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/456645?v=4)[Jonjo McKay](/maintainers/jonjomckay)[@jonjomckay](https://github.com/jonjomckay)

---

Top Contributors

[![jonjomckay](https://avatars.githubusercontent.com/u/456645?v=4)](https://github.com/jonjomckay "jonjomckay (7 commits)")

### Embed Badge

![Health badge](/badges/jonjomckay-symfony-api-problem/health.svg)

```
[![Health](https://phpackages.com/badges/jonjomckay-symfony-api-problem/health.svg)](https://phpackages.com/packages/jonjomckay-symfony-api-problem)
```

###  Alternatives

[symfony/http-kernel

Provides a structured process for converting a Request into a Response

8.1k869.4M8.8k](/packages/symfony-http-kernel)[statamic/cms

The Statamic CMS Core Package

4.8k3.6M984](/packages/statamic-cms)[sylius/sylius

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

8.5k5.9M737](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k185.6M2.4k](/packages/symfony-security-bundle)[api-platform/http-cache

API Platform HttpCache component

274.6M20](/packages/api-platform-http-cache)

PHPackages © 2026

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