jacobdekeizer / json-to-php-generator

Generate PHP classes from json
https://jacobdekeizer.github.io/json-to-php-generator
MIT License
63 stars 18 forks source link

Add support Serializer attributes option #39

Closed dbannik closed 1 year ago

dbannik commented 1 year ago

Add support for selecting the "attributes for JMS Serializers" option

use JMS\Serializer\Annotation\Type;

final readonly class Example {
    #[Type('array<string>')]
    public array $list;
}
jacobdekeizer commented 1 year ago

Hi,

It's currently out of the scope of the project to add support for specific packages. I personally use symfony serializer which can be used with the standard php docblocks.