← All code files

composer.json

PHP Composer manifest with PSR-4 autoloading.

{
  "name": "vendor/app",
  "description": "My PHP app",
  "type": "project",
  "require": {
    "php": ">=8.2"
  },
  "require-dev": {
    "phpunit/phpunit": "^11"
  },
  "autoload": {
    "psr-4": { "App\\": "src/" }
  }
}

About this tool

PHP Composer manifest with PSR-4 autoloading.

Ready-to-use composer.json — view the content, copy it, or download it with the correct filename. Free and 100% in your browser.