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

ActiveLibrary

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 1w 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 59% 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

4246d 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/security-bundle

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

2.5k172.9M1.8k](/packages/symfony-security-bundle)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[laravel/reverb

Laravel Reverb provides a real-time WebSocket communication backend for Laravel applications.

1.5k9.4M48](/packages/laravel-reverb)[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k15.7k5](/packages/elgg-elgg)[api-platform/http-cache

API Platform HttpCache component

223.2M7](/packages/api-platform-http-cache)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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