tools for drupal 8 - bobbis.com · drupal-8-projects-composer. drush "drush is a command line...

16
Tools for Drupal 8 CIDUG Meeting May 11, 2017 John Rearick

Upload: trinhdiep

Post on 11-Sep-2018

263 views

Category:

Documents


0 download

TRANSCRIPT

Tools for Drupal 8CIDUG Meeting May 11, 2017

John Rearick

Composer"Dependency manager for PHP"

Composer"Dependency manager for PHP"

Get off the Drupal island

Get and install Composer

• copy commands from getcomposer.org/download/

• mv composer.phar /usr/local/bin/composer

• Add /Users/username/.composer/vendor/bin to your PATH

Building a Drupal Website

Building a PHP Website with Drupal as a dependency

Start a project with drupal-composer/drupal-project

https://github.com/drupal-composer/drupal-project

Kickstart a plain Drupal project with composer:

composer create-project drupal-composer/drupal-project:8.x-dev some-dir --stability

dev --no-interaction

Composer Resources• The quick install: https://getcomposer.org/download/

• Using composer to manage a Drupal project: https://www.drupal.org/docs/develop/using-composer/ using-composer-to-manage-drupal-site-dependencies

• Tips for Managing Drupal 8 projects with composer: https://www.jeffgeerling.com/blog/2017/tips-managing-drupal-8-projects-composer

Drush"Drush is a command line shell and Unix scripting interface for Drupal"

Get and install Drush

• If you used drupal-composer/drupal-project, you already have it

• Or install globally composer global require drush/drush

Example Commands

• drush uli - Log in as user 1

• drush cr - Cache Rebuild is the new cache clear

• drush en ctools - Enable ctools

• drush dl ctools - Download ctools module

More Drush Commands at https://drushcommands.com/

Drush 9?

http://www.drush.org/en/master/install/

Drupal Console "The Drupal CLI. A tool to generate boilerplate code,

interact with and debug Drupal."

Get and install Drupal Console

• If you used drupal-composer/drupal-project, you already have it

• Or install globally https://drupalconsole.com/articles/how-to-install-drupal-console

What about Drush?

VS

Site AdministrationModule Development, especially boilerplate code