Composer JSON Generator
Generate PHP Composer composer.json configuration files with package name, description, type, license, authors, PHP version constraint, dependencies, dev-dependencies, and PSR-4 autoloading. Outputs properly formatted JSON ready to use.
How to Use Composer JSON Generator
Enter your PHP package name (vendor/package format), description, type, and license. Add author details and PHP version constraint. List dependencies and dev-dependencies one per line with version constraints. Set PSR-4 autoload namespace and path. Click Generate to create a properly formatted composer.json file.
Step-by-Step Instructions
- Enter package name and metadata
- Set PHP version and add dependencies
- Configure PSR-4 autoloading
- Click Generate composer.json and copy the result
Related Tools
JSON Formatter and Validator
Format, validate, and pretty-print JSON with syntax highlighting.
Base64 Encoder and Decoder
Encode text to Base64 or decode Base64 strings back to plain text.
URL Encoder and Decoder
Encode special characters for URLs or decode percent-encoded strings.
HTML Entity Encoder and Decoder
Encode special characters as HTML entities or decode them back.