2017 © Pedro Peláez
 

project composerd8

Project template for Drupal 8 projects with composer

image

akempler/composerd8

Project template for Drupal 8 projects with composer

  • Tuesday, May 8, 2018
  • by akempler
  • Repository
  • 2 Watchers
  • 0 Stars
  • 64 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Composer template for Drupal 8 projects

A basic Drupal 8 installation. For a docker environment to run it in see:
https://github.com/akempler/drudock/tree/composerd8, (*1)

First you need to install composer., (*2)

After that you can create the project:, (*3)

composer create-project akempler/composerd8:dev-master composer --stability dev --no-interaction

If using the docker environment listed above, the command would be run from directly in the project directory., (*4)

You can change "composer" to any directory name you want to use. This will create a directory structure like composer/drupal. Or yourprojectname/drupal.
I've used "composer" because there is a docker environment already configured to use that:, (*5)

https://github.com/akempler/drudock/tree/composerd8, (*6)

Currently there is no ssh setup so just use docker exec to enter the containers. You can run drush from the sandbox container against the drupal and mysql containers., (*7)

With composer require ... you can download new dependencies to your installation., (*8)

cd project-dir
composer require drupal/panels:8.*

What does the template do?

Provides some basic organization and setup for a drupal 8 installation., (*9)

Additionally it adds some useful modules/themes such as: * adminimal_theme * admin_toolbar * media_entity * media_entity_image * config_devel * features * entity_browser * rules * devel * token * pathauto * restui * panels * page_manager * panelizer * paragraphs * entity * ds * workbench_moderation * workbench, (*10)

When installing the given composer.json some tasks are taken care of:, (*11)

  • Drupal will be installed in the drupal-directory.
  • Autoloader is implemented to use the generated composer autoloader in vendor/autoload.php, instead of the one provided by Drupal (drupal/vendor/autoload.php).
  • Modules (packages of type drupal-module) will be placed in drupal/modules/contrib/
  • Theme (packages of type drupal-theme) will be placed in drupal/themes/contrib/
  • Profiles (packages of type drupal-profile) will be placed in drupal/profiles/contrib/
  • Creates default writable versions of settings.php and services.yml.
  • Creates sites/default/files-directory.

The following items are excluded from composer.json as they are often installed in a separate Docker container. However you can always add them using composer require or add them to composer.json: * "drush/drush" : "~8.1", * * Latest version of drush is installed locally for use at vendor/bin/drush. * "drupal/console" : "~1.0", * * Latest version of DrupalConsole is installed locally for use at vendor/bin/drupal., (*12)

The Versions

08/05 2018

dev-playground

dev-playground

Project template for Drupal 8 projects with composer

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by adam kempler

03/02 2017

dev-master

9999999-dev

Project template for Drupal 8 projects with composer

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by adam kempler

15/08 2016

dev-migrate

dev-migrate

Project template for Drupal 8 projects with composer

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by adam kempler