NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #3187 most downloaded on Packagist
Various tools to generate a data model based on Schema.org vocables
Latest stable
v5.2.5
Last release 9 months ago
29 Jan 2026
Release timing varies
gaps range from 3 weeks to 1.5 years
Nearly every release is documented
notes for 30 of 32 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
34 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
feat: compatibility with PHP 8.4
feat: compatibility with Symfony 7
Your coding agent can read these notes before it upgrades. Set up the MCP server →
fix: detect enum detection when an ancestor is an enum
fix: allow declaring multiple operations using the same class
feat(openapi): improve type detection by @alanpoulain in #399
Full Changelog: v5.1.1...v5.2.0
Full Changelog: https://github.com/api-platform/schema-generator/compare/v5.1.1...v5.2.0
feat: repeatable attributes support
feat: add API Platform 2.7/3 attributes generation
defaultCardinality configuration for relationsdefaultValue in property configurationresolveTypes and allTypes parametersfix: use FQCN when using an enum in callback constraint and remove ApiResource from the enum
feat: support updating existing files
security properties for classes and propertiesSupport for the Web Ontology Language (OWL) (including for the ActivityStream vocabulary)
generate-types command has been renamed generateFix an issue preventing to install the tool when using Symfony Flex
sameAs* Allow symfony/config 5.0
symfony/config 5.0Add support for custom Twig templates
columnPrefixinversedBy and mappedBy Doctrine attributesAllow to use a PSR-4 namespace's prefix
Allow to use a PSR-4 namespace's prefix
Use PHPScoper build the PHAR (to prevent conflicts with libraries installed in the project)
The generator now relies on embeded schema file to prevent issues with online XML files and allow offline usage
Generated classes include scalar typehints and return type
null valuereadable and writable options to fields to skip getter or mutator generation.fluentMutatorMethods config flag to true@param and @return annotations when a typehint exist and mutator description) isn't generated anymoreDateTimeInterface is used instead of DateTime when possibleSerializerGroupsAnnotationGenerator is enabled by defaultto-many relations and singularized for to-one relationsschema.yaml is found in the current directory and no 2nd argument is passed to generate-types, this file will be usedextract-cardinalities gains two new options: one to configure the Schema.org's file to use, the other for the GoodRelations oneThe default config now match the Symfony's and API Platform's Best Practices (namespaces)
Fix a bug when generating enumerations
Use the new PHP CS Fixer package
Schema Generator is now available as PHAR
nullable optionunique option@Column annotationsNothing published for this version
Rename the package API Platform Schema Generator (formerly PHP Schema)
Compatibility with the last version of DunglasApiBundle
Fix compatibility with DunglasApiBundle
* Make CS fixer working again
- DunglasJsonLdApiBundle support
Fixed Doctrine relations handling
null value handlingFix a bug when using Doctrine ArrayCollection
ArrayCollectionparent::__construct() when the parent constructor doesn't existRemoved deprecated call to YAML::parse()
YAML::parse()- Better generated PHPDoc - Removed @type support
@type supportNothing published for this version
One column per quarter.