php-json-schema-model-generator
  • Getting started
  • Examples

Generic

  • Required values
  • Readonly and write-only values
  • Default values
  • Namespaces
  • References
  • Meta data
  • Combined exceptions

Types

  • String
  • Numeric types
  • Boolean
  • Const
  • Null

Complex Types

  • Object
  • Array
  • Enum
  • Multi Type

Combined Schemas

  • All Of
  • Any Of
  • One Of
  • Not
  • If
  • Merged Property
  • Cross-typed compositions
  • Composition-implied objects

Extending the generator

  • Post Processor
  • Custom Drafts

Non standard extensions

  • Filter

Contributing / Development

  • Test infrastructure
php-json-schema-model-generator
  • php-json-schema-model-generator
  • View page source

php-json-schema-model-generator

Generates PHP model classes from JSON-Schema files including validation and providing a fluent auto completion for the generated classes.

  • Getting started
    • Installation
    • Generating classes
    • Configuring the generator
    • Post Processors
  • Examples
    • Scenario-based integration tests
    • Ebay OpenAPIv3 spec

Generic

  • Required values
  • Readonly and write-only values
  • Default values
  • Namespaces
  • References
  • Meta data
  • Combined exceptions

Types

  • String
  • Numeric types
  • Boolean
  • Const
  • Null

Complex Types

  • Object
  • Array
  • Enum
  • Multi Type

Combined Schemas

  • All Of
  • Any Of
  • One Of
  • Not
  • If
  • Merged Property
  • Cross-typed compositions
  • Composition-implied objects

Extending the generator

  • Post Processor
    • BuilderClassPostProcessor
    • EnumPostProcessor
    • PopulatePostProcessor
    • AdditionalPropertiesAccessorPostProcessor
    • PatternPropertiesAccessorPostProcessor
    • Custom Post Processors
    • Custom Drafts
  • Custom Drafts
    • Concepts
    • Implementing a custom draft
    • Implementing a draft factory

Non standard extensions

  • Filter

Contributing / Development

  • Test infrastructure
    • Test output directories
    • Running the tests
    • Base test class
    • Multi-draft testing
    • Run modes
    • Writing multi-draft tests
Next

© Copyright 2025, Enno Woortmann.

Built with Sphinx using a theme provided by Read the Docs.