zeusi / json-schema-extractor
Modular JSON Schema generator for PHP DTOs, extracting native types, PHPDoc, validation constraints, and serialization metadata
1.3.0
2026-05-31 12:30 UTC
Requires
- php: >=8.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.95
- opis/json-schema: ^2.6
- phpdocumentor/reflection-docblock: ^5.3 || ^6.0
- phpstan/phpdoc-parser: ^2.0
- phpstan/phpstan: ^2.1
- phpstan/phpstan-phpunit: ^2.0
- phpunit/phpunit: ^10.5
- symfony/config: ^6.4 || ^7.0 || ^8.0
- symfony/console: ^6.4 || ^7.0 || ^8.0
- symfony/dependency-injection: ^6.4 || ^7.0 || ^8.0
- symfony/error-handler: ^6.4 || ^7.0 || ^8.0
- symfony/form: ^6.4 || ^7.0 || ^8.0
- symfony/http-kernel: ^6.4 || ^7.0 || ^8.0
- symfony/serializer: ^6.4 || ^7.0 || ^8.0
- symfony/translation-contracts: ^3.5
- symfony/uid: ^6.4 || ^7.0 || ^8.0
- symfony/validator: ^6.4 || ^7.0 || ^8.0
Suggests
- phpdocumentor/reflection-docblock: Allows extracting DocBlock text metadata and PHPDoc types using PhpDocumentorEnricher
- phpstan/phpdoc-parser: Allows extracting high-precision PHPDoc types using PhpStanEnricher
- symfony/config: Allows configuring the optional Symfony bundle
- symfony/console: Allows using the optional Symfony console command to extract schemas
- symfony/dependency-injection: Allows wiring JSON Schema Extractor components as Symfony services
- symfony/error-handler: Allows SymfonySerializerStrategy to map FlattenException values like Symfony's ProblemNormalizer
- symfony/form: Allows SymfonySerializerStrategy to map FormInterface values like Symfony's FormErrorNormalizer
- symfony/http-kernel: Allows registering the optional Symfony bundle
- symfony/serializer: Allows using SymfonySerializerStrategy for #[SerializedName], serialization groups, name converters, and known normalizers
- symfony/translation-contracts: Allows SymfonySerializerStrategy to map TranslatableInterface values like Symfony's TranslatableNormalizer
- symfony/uid: Allows SymfonySerializerStrategy to map Symfony Uid values like Symfony's UidNormalizer
- symfony/validator: Allows extracting JSON Schema constraints from Symfony Validator metadata using SymfonyValidationEnricher