JSON input
Paste JSON, optionally name the root type, then generate.
Your PHP class code will appear here.
Generate PHP classes from JSON with typed properties. Nested classes, array types, and nullable fields follow modern PHP 7.4 plus conventions.
Paste JSON, optionally name the root type, then generate.
Your PHP class code will appear here.
Since PHP 7.4, properties can carry types, turning loose stdClass blobs into checked structures. The generator maps JSON types onto string, int, float, bool, array, and nested classes with nullability inferred.
Use the generated classes as the return types of your API client methods. Typed properties catch shape mismatches early and give your IDE the information it needs for autocomplete.