PHPackages                             geosocio/serialize-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. geosocio/serialize-response

Abandoned → [geosocio/http-serializer](/?search=geosocio%2Fhttp-serializer)Library[Utility &amp; Helpers](/categories/utility)

geosocio/serialize-response
===========================

Serializes a Controller Response

1.0.3(9y ago)144LGPL-3PHP

Since Jun 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/geosocio/serialize-response)[ Packagist](https://packagist.org/packages/geosocio/serialize-response)[ RSS](/packages/geosocio-serialize-response/feed)WikiDiscussions develop Synced 2w ago

READMEChangelogDependencies (5)Versions (5)Used By (0)

Serialize Response
==================

[](#serialize-response)

Serializes a Controller Response.

Example
-------

[](#example)

This controller's response would get serialized into the same format of the request.

```
public function showAction(Post $post) {
    return $post;
}
```

Configuration
-------------

[](#configuration)

Define a service in your configuration like this:

```
app.return_listener:
    class: GeoSocio\SerializeResponse\EventListener\KernelViewListener
    arguments:
        - '@serializer'
        - '@serializer'
        - '@security.token_storage'
        -
            - 'anonymous'
    tags:
        - { name: kernel.event_listener, event: kernel.view }
```

You can customize the Serialization Groups that are used by implementing `GeoSocio\SerializeResponse\Serializer\UserGroupsInterface`. Then `getGroups`will be executed on the currently authenticated user and the object that is being normalized will be passed as an argument.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

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

Total

4

Last Release

3298d ago

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/geosocio-serialize-response/health.svg)

```
[![Health](https://phpackages.com/badges/geosocio-serialize-response/health.svg)](https://phpackages.com/packages/geosocio-serialize-response)
```

###  Alternatives

[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k50.1M314](/packages/api-platform-core)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19664.8M1.6k](/packages/drupal-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6941.5M398](/packages/drupal-core-recommended)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M526](/packages/shopware-core)

PHPackages © 2026

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