Loading editor...
Loading editor...
// Generated PHP code will appear here...
settings
Generate PHP arrays and classes from JSON data with type hints and docblock annotations.
Features
- Generate PHP arrays and classes from JSON
- PHP 8 type hints and nullable types
- Docblock annotations for IDE support
- Nested class and array generation
- Laravel and Symfony compatible
- Copy generated code to clipboard
How to Use
- Paste your JSON — Enter a sample JSON object.
- Select format — Choose between PHP arrays, stdClass, or typed classes.
- Copy PHP code — Get production-ready PHP code with proper typing.
FAQ
What PHP features are generated?
Type hints (string, int, float, bool, array), nullable types (?string), and docblock annotations.
Does it work with Laravel?
Yes. Works with Eloquent models, API Resources, and any Laravel project.
