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 1mo ago

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

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

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

810d 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

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[mjaschen/collmex

Collmex PHP SDK

2080.7k](/packages/mjaschen-collmex)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)[dragon-code/laravel-json-response

Automatically always return a response in JSON format

1118.6k1](/packages/dragon-code-laravel-json-response)

PHPackages © 2026

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