PHPackages                             dyonis/symfony-api-response - 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. dyonis/symfony-api-response

ActiveLibrary[API Development](/categories/api)

dyonis/symfony-api-response
===========================

Symfony API Response component

0.1.2(2y ago)12MITPHPPHP &gt;=7.0

Since Feb 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/dyonis/symfony-api-response)[ Packagist](https://packagist.org/packages/dyonis/symfony-api-response)[ RSS](/packages/dyonis-symfony-api-response/feed)WikiDiscussions main Synced yesterday

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

ApiResponse
===========

[](#apiresponse)

Usage in controllers:
---------------------

[](#usage-in-controllers)

### Success response

[](#success-response)

```
return (new ApiResponse())
  ->setData(['product' => $product])
  ->setMessage('Successfully saved');
```

### Redirect response

[](#redirect-response)

```
return (new ApiResponse())
  ->apiRedirect('https://some.url', 302);
```

### Error response

[](#error-response)

```
$response = new ApiResponse();
$response->addErrors(['Error 1', 'Error 2'])
$response->addError('Error 3');
$response->addError('Error 4', 'Field');

return $response
```

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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

859d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d2c91933f229f70c152a36cf1110be2988bbcabbb2e79d4f9d642ec1584dd3ce?d=identicon)[dyonis](/maintainers/dyonis)

---

Top Contributors

[![dyonis](https://avatars.githubusercontent.com/u/61732622?v=4)](https://github.com/dyonis "dyonis (3 commits)")

### Embed Badge

![Health badge](/badges/dyonis-symfony-api-response/health.svg)

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

###  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)
