api = 2
core = 7.x
projects[drupal][type] = "core"
projects[drupal][version] = "7.51"
api = 2
core = 7.x
projects[drupal][type] = "core"
projects[drupal][version] = "7.51"
projects[pathauto] = "1.3"
api = 2
core = 7.x
projects[drupal][type] = "core"
projects[drupal][version] = "7.51"
projects[pathauto][version] = "1.3"
projects[pathauto][subdir] = "contrib"
projects[pathauto][patch][] = "..."
$ drush make drupalbristol.make some-dir
Beginning to build drupalbristol.make.
drupal-7.51 downloaded.
pathauto-7.x-1.3 downloaded.
$ drush make drupalbristol.make some-dir
Base path some-dir already exists.
exit 1
vendor
directorycomposer.json
and composer.lock
$ composer require silex/silex
...
- Installing pimple/pimple (v3.0.2)
Downloading: 100%
- Installing silex/silex (v2.0.4)
Downloading: 100%
Writing lock file
Generating autoload files
"require": {
"silex/silex": "^2.0"
}
vendor
directory since 8.1.x)drupal/drupal
from Packagistdrupal-composer/drupal-project
template
$ composer create-project \
drupal/drupal \
my_site_name ^8.2 --no-dev
$ composer create-project \
drupal-composer/drupal-project:8.x-dev \
my_site_name-dir --stability dev \
--no-interaction
drupal/drupal
is a minimum setup, no extras, uses the repo root as the docrootdrupal-composer/drupal-project
includes installer paths, scaffold files, Drush, Drupal Consoledrupal-composer/drupal-project
available for Drupal 7 and Drupal 8
$ composer config \
repositories.drupal composer \
https://packages.drupal.org/8
"repositories": {
"drupal": {
"type": "composer",
"url": "https://packages.drupal.org/8"
}
}
"extra": {
"installer-paths": {
"modules/contrib/{$name}": ["type:drupal-module"],
"modules/custom/{$name}": ["type:drupal-custom-module"],
"profiles/contrib/{$name}": ["type:drupal-profile"],
"themes/contrib/{$name}": ["type:drupal-theme"],
"themes/custom/{$name}": ["type:drupal-custom-theme"]
}
}
$ composer require drupal/pathauto:^1.0
...
- Installing drupal/token (1.0.0-beta2)
Downloading: 100%
- Installing drupal/ctools (3.0.0-alpha27)
Downloading: 100%
- Installing drupal/pathauto (1.0.0-beta1)
Downloading: 100%
$ composer require drupal/address:^1.0
...
- Installing commerceguys/addressing (v1.0.0-beta1)
Downloading: 100%
...
- Installing drupal/address (1.0.0-rc3)
Downloading: 100%
$ composer require drupal/omega:^5.0
$ composer require cweagans/composer-patches
"extra": {
"patches": {
"drupal/drupal": {
"Add startup configuration for PHP server":
"https://www.drupal.org/files/issues/1543858-30.patch"
}
}
}
composer.lock
composer.lock
with the latest available versions
$ composer update \
--with-dependencies
$ composer install --no-dev \
--optimize-autoloader
composer install