martin-helmich/php-schema2class

Generate PHP classes from JSON schemas

51
/ 100
Established

Generates strongly-typed PHP classes with built-in JSON validation and immutable accessor patterns (`withX()` methods) from JSON schemas, supporting backwards compatibility down to PHP 5.6 via a `--target-php` flag. The tool uses the `justinrainbow/json-schema` validator to enforce schema constraints at runtime and automatically infers target namespaces from `composer.json` PSR-4 configuration. Configuration files (`.s2c.yaml`) enable batch generation workflows for evolving schemas in multi-file projects.

No Package No Dependents
Maintenance 10 / 25
Adoption 7 / 25
Maturity 16 / 25
Community 18 / 25

How are scores calculated?

Stars

36

Forks

16

Language

PHP

License

MIT

Last pushed

Jan 16, 2026

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/martin-helmich/php-schema2class"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.