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(8y ago)144LGPL-3PHP

Since Jun 16Pushed 8y 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 2d 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 60% 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

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

[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[illuminate/cookie

The Illuminate Cookie package.

224.3M122](/packages/illuminate-cookie)[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6144.4k1](/packages/spomky-labs-pwa-bundle)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)[leapt/core-bundle

Symfony LeaptCoreBundle

2529.1k4](/packages/leapt-core-bundle)

PHPackages © 2026

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