Why convert JSON to PHP?
Mapping API payloads to PHP value objects by hand is tedious. Paste a sample JSON document above and get typed PHP 8 classes using constructor property promotion, ready to paste into your project.
How it works
The converter parses your JSON locally and generates one class per object, with
declare(strict_types=1) at the top. Property names are camelCased, integers map to
int, floats to float, booleans to bool and arrays to array. Enable the
readonly option to make every promoted property immutable (PHP 8.1+).