schema is a command-line tool part of the API Platform framework that
instantly generates a set of PHP classes from
RDF vocabularies such as (but not
limited to) Schema.org or
ActivityStreams. Alternatively, it can generate PHP
classes from an OpenAPI documentation.
Find and browse (or create) a vocabulary that fits your needs, choose the types and properties you need, run our code generator and you’re done! Alternatively, design your API with tools like Stoplight, export the OpenAPI documentation, run our code generator and your API is ready!

You get a fully featured PHP data model including:
abstract classes. The generated code complies with
PSR coding standards;#[MappedSuperclass] or #[InheritanceType] attributes depending on if the resource is used in a
relation);ResolveTargetEntityListener
support;Bonus:
Schema.org is a vocabulary representing common data structures and their relations. Schema.org can be exposed as JSON-LD, microdata and RDF. Extracting semantical data exposed in the Schema.org vocabulary is supported by a growing number of companies including Google (Search, Gmail), Yahoo!, Bing and Yandex.