gollumsf/serializer-describe-attribute-bundle

Add class attribute for describe serializer property

Maintainers

Package info

github.com/GollumSF/serializer-describe-attribute-bundle

Wiki

Type:symfony-bundle

pkg:composer/gollumsf/serializer-describe-attribute-bundle

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-03-27 08:51 UTC

This package is auto-updated.

Last update: 2026-03-27 09:51:19 UTC


README

Build Status Build Status Build Status

Coverage License Latest Stable Version Latest Unstable Version Discord

Add class attribute for describe serializer property

Requirements:

  • PHP >= 8.2
  • Symfony 6.4, 7.x or 8.0

Installation:

composer require gollumsf/serializer-describe-attribute-bundle

config/bundles.php

return [
    // [ ... ]
    GollumSF\SerializerDescribeAttributeBundle\GollumSFSerializerDescribeAttributeBundle::class => ['all' => true],
];

Usage:

use GollumSF\SerializerDescribeAttributeBundle\Attribute\SerializerDescribe;

class EntityParent {
    private $propertyA;
}

#[SerializerDescribe([
    'propertyA' => [
        'groups' => [
            'group_1', 'group_2'
        ]
    ],
    'propertyB' => [
        'serializedName' => 'new_name',
        'maxDepth' => 2
    ]
])]
class EntityChild extends EntityParent {
    private $propertyB;
}