Заготовка composer.json PHP-проекта

Содержимое файла composer.json для старта проекта.

{
  "name": "vendor-name/package-name",
  "type": "project",
  "description": "Description of the project.",
  "authors": [
    {
      "name": "Name1 Surname1",
      "email": "email1@email.domain",
      "homepage": "https://your-site.domain",
      "role": "Developer"
    },
    {
      "name": "Name2 Surname2",
      "email": "email2@email.domain",
      "homepage": "https://your-site.domain",
      "role": "Developer"
    }
  ],
  "keywords": [
    "keyword1",
    "keyword2",
    "keyword3"
  ],
  "license": "MIT",
  "require": {
    "php" : "^7.0",
    "author1/package": "~1.1",
    "author2/package": "~1.2",
    "author3/package": "~1.3"
  },
  "require-dev": {
    "author4/package": "~1.1",
    "author5/package": "~1.2",
    "author6/package": "~1.3"
  },
  "autoload": {
    "psr-4": {
      "App\\": "src/"
    }
  },
  "autoload-dev": {
    "psr-4": {
      "Tests\\": "tests/"
    }
  }
}

Полезные ссылки

21.03.2020

Категория(-и): Composer, Сниппеты

# #

Добавить комментарий