Skip to main content

Creating a new Drupal site using Composer

_ For more info. go to: https://github.com/drupal-composer/drupal-project
 

MacBook-Air:devdesktop anisur$ composer create-project drupal-composer/drupal-project:8.x-dev 
myd8site --stability dev --no-interaction

Installing drupal-composer/drupal-project (8.x-dev 2d09cf7be3f8549ec4bb054558096e09b7cd041e)
  - Installing drupal-composer/drupal-project (8.x-dev 2d09cf7): Cloning 2d09cf7be3 from cache
Created project in myd8site
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 102 installs, 0 updates, 0 removals
  - Installing drupal-composer/drupal-scaffold (2.2.0): Loading from cache
  - Installing cweagans/composer-patches (1.6.1): Loading from cache
  - Installing composer/installers (v1.2.0): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.3.0): Loading from cache
  - Installing ircmaxell/password-compat (v1.0.4): Loading from cache
  - Installing symfony/polyfill-php55 (v1.3.0): Loading from cache
  - Installing symfony/polyfill-php54 (v1.3.0): Loading from cache
  - Installing symfony/http-foundation (v2.8.18): Loading from cache
  - Installing symfony/expression-language (v2.8.18): Loading from cache
  - Installing symfony/dom-crawler (v3.2.6): Loading from cache
  - Installing symfony/css-selector (v2.8.18): Loading from cache
  - Installing jakub-onderka/php-console-color (0.1): Loading from cache
  - Installing jakub-onderka/php-console-highlighter (v0.3.2): Loading from cache
  - Installing dnoegel/php-xdg-base-dir (0.1): Loading from cache
  - Installing nikic/php-parser (v3.0.5): Loading from cache
  - Installing symfony/var-dumper (v2.8.18): Loading from cache
  - Installing psr/log (1.0.2): Loading from cache
  - Installing symfony/debug (v2.8.18): Loading from cache
  - Installing symfony/console (v2.8.18): Loading from cache
  - Installing psy/psysh (v0.8.3): Loading from cache
  - Installing psr/http-message (1.0.1): Loading from cache
  - Installing guzzlehttp/psr7 (1.4.2): Loading from cache
  - Installing guzzlehttp/promises (v1.3.1): Loading from cache
  - Installing guzzlehttp/guzzle (6.2.3): Loading from cache
  - Installing gabordemooij/redbean (v4.3.3): Loading from cache
  - Installing symfony/finder (v2.8.18): Loading from cache
  - Installing symfony/yaml (v2.8.18): Loading from cache
  - Installing drupal/console-extend-plugin (0.4.0): Loading from cache
  - Installing webflo/drupal-finder (0.2.1): Loading from cache
  - Installing twig/twig (v1.33.0): Loading from cache
  - Installing symfony/translation (v2.8.18): Loading from cache
  - Installing symfony/process (v2.8.18): Loading from cache
  - Installing symfony/filesystem (v2.8.18): Loading from cache
  - Installing symfony/event-dispatcher (v2.8.18): Loading from cache
  - Installing symfony/dependency-injection (v2.8.18): Loading from cache
  - Installing symfony/config (v2.8.18): Loading from cache
  - Installing stecman/symfony-console-completion (0.7.0): Loading from cache
  - Installing drupal/console-en (1.0.0-rc16): Loading from cache
  - Installing dflydev/placeholder-resolver (v1.0.2): Loading from cache
  - Installing dflydev/dot-access-data (v1.1.0): Loading from cache
  - Installing dflydev/dot-access-configuration (v1.0.1): Loading from cache
  - Installing drupal/console-core (1.0.0-rc16): Loading from cache
  - Installing doctrine/collections (v1.3.0): Loading from cache
  - Installing doctrine/lexer (v1.0.1): Loading from cache
  - Installing doctrine/annotations (v1.2.7): Loading from cache
  - Installing alchemy/zippy (0.4.3): Loading from cache
  - Installing drupal/console (1.0.0-rc16): Loading from cache
  - Installing zendframework/zend-stdlib (3.1.0): Loading from cache
  - Installing zendframework/zend-escaper (2.5.2): Loading from cache
  - Installing zendframework/zend-feed (2.8.0): Loading from cache
  - Installing zendframework/zend-diactoros (1.3.10): Loading from cache
  - Installing symfony/validator (v2.8.18): Loading from cache
  - Installing symfony/serializer (v2.8.18): Loading from cache
  - Installing symfony/routing (v2.8.18): Loading from cache
  - Installing symfony/psr-http-message-bridge (v0.2): Loading from cache
  - Installing symfony/polyfill-iconv (v1.3.0): Loading from cache
  - Installing symfony/http-kernel (v2.8.18): Loading from cache
  - Installing symfony/polyfill-apcu (v1.3.0): Loading from cache
  - Installing symfony/class-loader (v2.8.18): Loading from cache
  - Installing symfony-cmf/routing (1.4.0): Loading from cache
  - Installing stack/builder (v1.0.4): Loading from cache
  - Installing paragonie/random_compat (v2.0.10): Loading from cache
  - Installing masterminds/html5 (2.2.2): Loading from cache
  - Installing egulias/email-validator (1.2.14): Loading from cache
  - Installing easyrdf/easyrdf (0.9.1): Loading from cache
  - Installing doctrine/inflector (v1.1.0): Loading from cache
  - Installing doctrine/cache (v1.6.1): Loading from cache
  - Installing doctrine/common (v2.5.3): Loading from cache
  - Installing composer/semver (1.4.2): Loading from cache
  - Installing asm89/stack-cors (1.0.0): Loading from cache
  - Installing drupal/core (8.2.7): Loading from cache
  - Installing webmozart/assert (1.2.0): Loading from cache
  - Installing webmozart/path-util (2.3.0): Loading from cache
  - Installing phpdocumentor/reflection-docblock (2.0.4): Loading from cache
  - Installing pear/console_table (v1.3.0): Loading from cache
  - Installing consolidation/output-formatters (3.1.8): Loading from cache
  - Installing consolidation/annotated-command (2.4.8): Loading from cache
  - Installing drush/drush (8.1.10): Loading from cache
  - Installing symfony/browser-kit (v3.2.6): Loading from cache
  - Installing fabpot/goutte (v3.2.1): Loading from cache
  - Installing behat/mink (v1.7.1): Loading from cache
  - Installing behat/mink-browserkit-driver (v1.3.2): Loading from cache
  - Installing behat/mink-goutte-driver (v1.2.1): Loading from cache
  - Installing jcalderonzumba/gastonjs (v1.0.3): Loading from cache
  - Installing jcalderonzumba/mink-phantomjs-driver (v0.3.3): Loading from cache
  - Installing mikey179/vfsstream (v1.6.4): Loading from cache
  - Installing sebastian/version (1.0.6): Loading from cache
  - Installing sebastian/global-state (1.1.1): Loading from cache
  - Installing sebastian/recursion-context (1.0.5): Loading from cache
  - Installing sebastian/exporter (1.2.2): Loading from cache
  - Installing sebastian/environment (1.3.8): Loading from cache
  - Installing sebastian/diff (1.4.1): Loading from cache
  - Installing sebastian/comparator (1.2.4): Loading from cache
  - Installing doctrine/instantiator (1.0.5): Loading from cache
  - Installing phpunit/php-text-template (1.2.1): Loading from cache
  - Installing phpunit/phpunit-mock-objects (2.3.8): Loading from cache
  - Installing phpunit/php-timer (1.0.9): Loading from cache
  - Installing phpunit/php-file-iterator (1.4.2): Loading from cache
  - Installing phpunit/php-token-stream (1.4.11): Loading from cache
  - Installing phpunit/php-code-coverage (2.2.4): Loading from cache
  - Installing phpspec/prophecy (v1.7.0): Loading from cache
  - Installing phpunit/phpunit (4.8.35): Loading from cache
symfony/var-dumper suggests installing ext-symfony_debug ()
psy/psysh suggests installing ext-pcntl (Enabling the PCNTL extension makes PsySH a lot happier :))
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
psy/psysh suggests installing hoa/console (A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit.)
symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them)
alchemy/zippy suggests installing guzzle/guzzle (To use the GuzzleTeleporter with Guzzle 3)
zendframework/zend-feed suggests installing zendframework/zend-cache (Zend\Cache component, for optionally caching feeds between requests)
zendframework/zend-feed suggests installing zendframework/zend-db (Zend\Db component, for use with PubSubHubbub)
zendframework/zend-feed suggests installing zendframework/zend-http (Zend\Http for PubSubHubbub, and optionally for use with Zend\Feed\Reader)
zendframework/zend-feed suggests installing zendframework/zend-servicemanager (Zend\ServiceManager component, for easily extending ExtensionManager implementations)
zendframework/zend-feed suggests installing zendframework/zend-validator (Zend\Validator component, for validating email addresses used in Atom feeds and entries ehen using the Writer subcomponent)
symfony/validator suggests installing symfony/intl ()
symfony/validator suggests installing symfony/property-access (For using the 2.4 Validator API)
symfony/serializer suggests installing symfony/property-access (For using the ObjectNormalizer.)
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
easyrdf/easyrdf suggests installing ml/json-ld (~1.0)
phpdocumentor/reflection-docblock suggests installing dflydev/markdown (~1.0)
phpdocumentor/reflection-docblock suggests installing erusev/parsedown (~1.0)
pear/console_table suggests installing pear/Console_Color2 (>=0.1.2)
drush/drush suggests installing ext-pcntl (*)
drush/drush suggests installing drush/config-extra (Provides configuration workflow commands, such as config-merge.)
behat/mink suggests installing behat/mink-selenium2-driver (slow, but JS-enabled driver for any app (requires Selenium2))
behat/mink suggests installing behat/mink-zombie-driver (fast and JS-enabled headless driver for any app (requires node.js))
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
Writing lock file
Generating autoload files
Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)> DrupalProject\composer\ScriptHandler::createRequiredFiles
Create a sites/default/settings.php file with chmod 0666
Create a sites/default/services.yml file with chmod 0666
Create a sites/default/files directory with chmod 0777
Mds-MacBook-Air:devdesktop anisur$ cd myd8site/
Mds-MacBook-Air:myd8site anisur$ ls -la
total 504
drwxr-xr-x  13 anisur  staff     442 Apr  3 22:02 .
drwxr-xr-x  15 anisur  staff     510 Apr  3 22:01 ..
-rw-r--r--   1 anisur  staff     418 Apr  3 22:01 .gitignore
-rw-r--r--   1 anisur  staff    1292 Apr  3 22:01 .travis.yml
-rw-r--r--   1 anisur  staff   18046 Apr  3 22:01 LICENSE
-rw-r--r--   1 anisur  staff    5885 Apr  3 22:01 README.md
-rw-r--r--   1 anisur  staff    2315 Apr  3 22:01 composer.json
-rw-r--r--   1 anisur  staff  211614 Apr  3 22:02 composer.lock
drwxr-xr-x   4 anisur  staff     136 Apr  3 22:01 drush
-rw-r--r--   1 anisur  staff     481 Apr  3 22:01 phpunit.xml.dist
drwxr-xr-x   3 anisur  staff     102 Apr  3 22:01 scripts
drwxr-xr-x  43 anisur  staff    1462 Apr  3 22:02 vendor
drwxr-xr-x  18 anisur  staff     612 Apr  3 22:02 web
Mds-MacBook-Air:myd8site anisur$ cd web
Mds-MacBook-Air:web anisur$ ls -la
total 104
drwxr-xr-x  18 anisur  staff   612 Apr  3 22:02 .
drwxr-xr-x  13 anisur  staff   442 Apr  3 22:02 ..
-rw-r--r--   1 anisur  staff   948 Apr  3 22:02 .csslintrc
-rw-r--r--   1 anisur  staff   350 Apr  3 22:02 .editorconfig
-rw-r--r--   1 anisur  staff   185 Apr  3 22:02 .eslintignore
-rw-r--r--   1 anisur  staff    36 Apr  3 22:02 .eslintrc
-rw-r--r--   1 anisur  staff  3671 Apr  3 22:02 .gitattributes
-rw-r--r--   1 anisur  staff  7865 Apr  3 22:02 .htaccess
-rw-rw-rw-   1 anisur  staff   385 Apr  3 22:02 autoload.php
drwxr-xr-x  32 anisur  staff  1088 Apr  3 22:01 core
-rw-r--r--   1 anisur  staff   549 Apr  3 22:02 index.php
drwxr-xr-x   3 anisur  staff   102 Apr  3 22:02 modules
drwxr-xr-x   3 anisur  staff   102 Apr  3 22:02 profiles
-rw-r--r--   1 anisur  staff  1596 Apr  3 22:02 robots.txt
drwxr-xr-x   6 anisur  staff   204 Apr  3 22:02 sites
drwxr-xr-x   3 anisur  staff   102 Apr  3 22:02 themes
-rw-r--r--   1 anisur  staff   848 Apr  3 22:02 update.php
-rw-r--r--   1 anisur  staff  4555 Apr  3 22:02 web.config
Back to top