api-platform/schema-generator
Various tools to generate a data model based on Schema.org vocables
v5.2.5
4.6M downloads/mo
#3208 most downloaded on Packagist
api-platform/schema-generator
What this package is like to depend on
Last release 6 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
1 release in the last 12 months
see the full history below
Release timeline
33 releases · Dec 2014 to Jan 2026Releases
latest 34-
v5.2.529 Jan 2026Nothing published for this version
-
v5.2.430 Jan 2025 -
v5.2.328 Jan 2025Release notes
Open source →- feat: compatibility with Symfony 7
- fix: replace of GoodRelations OWL file (#431)
Release notes
Open source →- feat: compatibility with Symfony 7
- fix: replace of GoodRelations OWL file (#431)
-
v5.2.219 Jul 2023 -
v5.2.129 Jun 2023 -
v5.2.013 Dec 2022Release notes
Open source →What's Changed
- feat(openapi): improve type detection by @alanpoulain in #399
Full Changelog: v5.1.1...v5.2.0
-
v5.1.106 Oct 2022Release notes
Open source →- feat: repeatable attributes support
- fix: missing unique for self-referencing relations
-
v5.0.006 Sep 2022Release notes
Open source →- feat: add OpenAPI support
- feat: add API Platform 2.7/3 attributes generation
- feat: custom attributes and custom attribute arguments
- feat: add Doctrine ORM inheritance support (discriminator)
- feat: manage association overrides for Doctrine ORM
- feat: add
defaultCardinalityconfiguration for relations - feat: add
defaultValuein property configuration - feat: add
resolveTypesandallTypesparameters - refactor: better handling of data type (including lang string)
- fix: self-referencing relations (Doctrine ORM)
- fix: update reserved keywords
- fix: remove simple in ODM attributes
Release notes
Open source →- feat: add OpenAPI support
- feat: add API Platform 2.7/3 attributes generation
- feat: custom attributes and custom attribute arguments
- feat: add Doctrine ORM inheritance support (discriminator)
- feat: manage association overrides for Doctrine ORM
- feat: add
defaultCardinalityconfiguration for relations - feat: add
defaultValuein property configuration - feat: add
resolveTypesandallTypesparameters - refactor: better handling of data type (including lang string)
- fix: self-referencing relations (Doctrine ORM)
- fix: update reserved keywords
- fix: remove simple in ODM attributes
-
v4.0.108 Feb 2022Release notes
Open source →- fix: use FQCN when using an enum in callback constraint and remove ApiResource from the enum
- fix: make sure relations are generated
- fix: inheritance from Intangible should not create warning
Release notes
Open source →- fix: use FQCN when using an enum in callback constraint and remove ApiResource from the enum
- fix: make sure relations are generated
- fix: inheritance from Intangible should not create warning
-
v4.0.024 Dec 2021Release notes
Open source →- feat: support updating existing files
- feat: generate PHP 8 attributes
- feat: generate API Platform Core
securityproperties for classes and properties - feat: support for HTTPS URLs of Schema.org
- feat: add YAML support for Doctrine ORM "resolve entity"
- feat: support for interface namespaces
- feat: compatibility with Symfony 6
- feat: compatibility with PHP 8.1
- feat: now uses Nette generator
- fix: the whole code base has been refactored, a log of bugs have been fixed
Release notes
Open source →- feat: support updating existing files
- feat: generate PHP 8 attributes
- feat: generate API Platform Core
securityproperties for classes and properties - feat: support for HTTPS URLs of Schema.org
- feat: add YAML support for Doctrine ORM "resolve entity"
- feat: support for interface namespaces
- feat: compatibility with Symfony 6
- feat: compatibility with PHP 8.1
- feat: now uses Nette generator
- fix: the whole code base has been refactored, a log of bugs have been fixed
-
v3.0.020 Jan 2021Release notes
Open source →- Support for the Web Ontology Language (OWL) (including for the ActivityStream vocabulary)
- Support for XML Schema types
- Compatibility with the latest version of Schema.org
- Improved PHP type hints generation (including support for typed properties)
- Improved PHPDoc support
- Upgrade to EasyRDF 1 and Doctrine Inflector 2
- More flexible configuration
- The
generate-typescommand has been renamedgenerate
-
v2.2.210 Jan 2020Release notes
Open source →- Update to Symfony 5
- Fix an issue preventing to install the tool when using Symfony Flex
- Fix a singularization issue with some words such as
sameAs
-
v2.2.123 Nov 2019 -
v2.2.011 Nov 2019Release notes
Open source →- Symfony 5 compatibility
- Add support for custom Twig templates
- Add support for operations in API Platform annotations
- Add support for custom
columnPrefix - Use superseding props over which they superseded
- Fix implicit and explicit property inheritance
- Use nullable property for custom fields
- Add
inversedByandmappedByDoctrine attributes - Fix annotation generation
-
v2.1.023 Jan 2018Release notes
Open source →- Allow to use a PSR-4 namespace's prefix
- Autodetect Flex-like directory structure
- Improve the message when using 1st type in range
-
v2.1.0-beta.1no date pre-releaseNothing published for this version
-
v2.0.223 Oct 2017Release notes
Open source →- Use PHPScoper build the PHAR (to prevent conflicts with libraries installed in the project)
- Add E2E tests
-
v2.0.116 Sep 2017Release notes
Open source →- The generator now relies on embedded schema file to prevent issues with online XML files and allow offline usage
- An issue regarding the Inflector namespace has been fixed
-
v2.0.008 Sep 2017Release notes
Open source →- Generated classes include scalar typehints and return type
- New options to generate autoincremented IDs, UUIDs, custom IDs or to not generate IDs at all (DTO)
- Nullable typehints are generated instead of a default
nullvalue - Add new
readableandwritableoptions to fields to skip getter or mutator generation. - A fluent interface isn't generated anymore by default unless you set the
fluentMutatorMethodsconfig flag totrue - Useless PHPDoc (
@paramand@returnannotations when a typehint exist and mutator description) isn't generated anymore DateTimeInterfaceis used instead ofDateTimewhen possible- Add the ability to not generate accessor methods (useful when generating public properties)
- The annotation generator for API Platform v1 has been dropped. Only API Platform v2 is now supported
- Parent class is not generated by default anymore (using inheritance for entity is discouraged)
SerializerGroupsAnnotationGeneratoris enabled by default- The property name is pluralized for
to-manyrelations and singularized forto-onerelations - Adder and remover methods are always singularized to be compatible with the Symfony Property Accessor
- If a config file called
schema.yamlis found in the current directory and no 2nd argument is passed togenerate-types, this file will be used - The code has been modernized to use PHP 7 and 7.1's new features (typehints, strict types), PHP 7.1 is now a requirement
- PHP CS Fixer has ben upgraded to its version 2
- The
extract-cardinalitiesgains two new options: one to configure the Schema.org's file to use, the other for the GoodRelations one
-
v1.2.024 Nov 2016Release notes
Open source →- The default config now match the Symfony's and API Platform's Best Practices (namespaces)
- The API Platform's annotation generator is enabled by default
- Use HTTPS to retrieve vocabularies by default
- Properties are generated in the order of the config file
- Properties and constants are separated by an empty line
-
v1.1.227 Sep 2016 -
v1.1.131 May 2016 -
v1.1.016 May 2016Release notes
Open source →- MongoDB support
- API Platform Core v2 support
- Schema Generator is now available as PHAR
- Support any RDF vocabulary (was previously limited to Schema.org)
- Support for custom classes
- Support for Doctrine Embeddables
- Support for serialization groups
- Support for the
nullableoption - Support for the
uniqueoption - Support for custom Doctine
@Columnannotations - Symfony 3.0 compatibility
- Various bug fixes and improved tests
-
v1.1.0-beta.122 Nov 2015 pre-releaseNothing published for this version
-
v1.0.017 Sep 2015Release notes
Open source →- Rename the package API Platform Schema Generator (formerly PHP Schema)
- Support for external and custom RDFa schemas
- Support custom name for relation tables
- Allow to use properties from parent classes
- Allow to create custom fields
- Improve code quality and tests
-
v0.4.315 May 2015Release notes
Open source →- Fix compatibility with API Platform Core v1 (formerly DunglasJsonLdApiBundle)
-
v0.4.222 Apr 2015Release notes
Open source →- Fix compatibility with API Platform Core v1 (formerly DunglasJsonLdApiBundle)
-
v0.4.106 Apr 2015 -
v0.4.006 Apr 2015 -
v0.3.206 Mar 2015 -
v0.3.106 Mar 2015Release notes
Open source →- Fix a bug when using Doctrine
ArrayCollection - Don't call `parent::__construct()`` when the parent constructor doesn't exist
- Fix a bug when using Doctrine
-
v0.3.029 Dec 2014Release notes
Open source →- Symfony / Doctrine's ResolveTragetEntityListener config mapping generation
- Refactored Doctrine config
- Removed deprecated call to `YAML::parse()``
-
v0.2.028 Dec 2014 -
v0.1.016 Dec 2014Nothing published for this version