akempler / composerd8
Project template for Drupal 8 projects with composer
Installs: 72
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:project
Requires
- composer/installers: ^1.2
- cweagans/composer-patches: ^1.6.5
- drupal-composer/drupal-scaffold: ^2.5
- drupal/admin_toolbar: ^1.2
- drupal/console: ~1.8
- drupal/core: ~8.6
- drupal/devel: ^1.2
- drupal/dropzonejs: ^2.0@alpha
- drupal/embed: ^1.0
- drupal/entity_browser: ^2.0@alpha
- drupal/entity_embed: ^1.0@beta
- drupal/entity_reference_revisions: ~1.5
- drupal/field_group: ~3.0@beta
- drupal/page_manager: ^4.0@beta
- drupal/panels: ^4.3
- drupal/paragraphs: ~1.3
- drupal/pathauto: ^1.2
- drupal/restui: ^1.1
- drupal/token: ^1.3
- drupal/twig_tweak: ^2.1
- drush/drush: ^9.0.0
- vlucas/phpdotenv: ^2.4
- webflo/drupal-finder: ^1.1
- webmozart/path-util: ^2.3
Requires (Dev)
- behat/mink: ~1.7
- behat/mink-goutte-driver: ~1.2
- guzzlehttp/guzzle: ~6.3
- hirak/prestissimo: ~0.3
- jcalderonzumba/gastonjs: ~1.2
- jcalderonzumba/mink-phantomjs-driver: ~0.3.3
- mikey179/vfsstream: ~1.6
- phpunit/phpunit: ~7.3
- symfony/css-selector: ~3.4
Conflicts
This package is auto-updated.
Last update: 2024-10-26 23:35:48 UTC
README
A basic Drupal 8 installation. For a docker environment to run it in see:
https://github.com/akempler/drudock/tree/composerd8
First you need to install composer.
After that you can create the project:
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.
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:
https://github.com/akempler/drudock/tree/composerd8
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.
With composer require ...
you can download new dependencies to your
installation.
cd project-dir
composer require drupal/panels:8.*
What does the template do?
Provides some basic organization and setup for a drupal 8 installation.
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
When installing the given composer.json
some tasks are taken care of:
- 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 indrupal/modules/contrib/
- Theme (packages of type
drupal-theme
) will be placed indrupal/themes/contrib/
- Profiles (packages of type
drupal-profile
) will be placed indrupal/profiles/contrib/
- Creates default writable versions of
settings.php
andservices.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
.
- Latest version of drush is installed locally for use at
- "drupal/console" : "~1.0",
-
- Latest version of DrupalConsole is installed locally for use at
vendor/bin/drupal
.
- Latest version of DrupalConsole is installed locally for use at