gollumsf/serializer-describe-attribute-bundle
最新稳定版本:v1.0.0
Composer 安装命令:
composer require gollumsf/serializer-describe-attribute-bundle
包简介
Add class attribute for describe serializer property
README 文档
README
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; }
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2026-03-27