Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Modern Drupal Development with Composer
Search
Oliver Davies
November 09, 2016
Programming
0
340
Modern Drupal Development with Composer
PHPSW lightning talk
Oliver Davies
November 09, 2016
Tweet
Share
More Decks by Oliver Davies
See All by Oliver Davies
Building Static Websites with Sculpin
opdavies
0
1.5k
Taking Flight with Tailwind CSS
opdavies
0
4.7k
TDD - Test Driven Drupal
opdavies
0
3.4k
Building "Build Configs"
opdavies
0
340
Communities and contribution
opdavies
0
130
Working without Workspace
opdavies
0
190
Things you should know about PHP
opdavies
1
680
An Introduction to Mob Programming
opdavies
0
210
Deploying PHP applications with Ansible, Ansible Vault and Ansistrano
opdavies
0
6k
Other Decks in Programming
See All in Programming
M5Stackボードの選び方
tanakamasayuki
0
200
tsconfig.jsonの最近の新機能 ファイルパス編
uhyo
5
990
Kotlin Multiplatform at Stable and Beyond (Kotlin Vienna, October 2024)
zsmb
2
270
Flutterアプリを生成AIで生成する勘所
rizumita
0
230
Cohesion in Modeling and Design
mploed
3
170
CSC509 Lecture 03
javiergs
PRO
0
110
C#および.NETに対する誤解をひも解く
ymd65536
0
180
LLMと音声基盤モデルを用いた音声認識
spiralai
PRO
0
140
What is TDD?
urakawa_jinsei
1
190
フロントエンドの標準仕様をどう追っているか / How I follow the frontend standards specs
petamoriken
3
170
CSC509 Lecture 01
javiergs
PRO
1
190
Pythonによるイベントソーシングへの挑戦と現状に対する考察 / Challenging Event Sourcing with Python and Reflections on the Current State
nrslib
3
770
Featured
See All Featured
Agile that works and the tools we love
rasmusluckow
327
21k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
The Straight Up "How To Draw Better" Workshop
denniskardys
231
130k
StorybookのUI Testing Handbookを読んだ
zakiyama
26
5.1k
In The Pink: A Labor of Love
frogandcode
139
22k
Into the Great Unknown - MozCon
thekraken
29
1.4k
Large-scale JavaScript Application Architecture
addyosmani
509
110k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3.4k
Music & Morning Musume
bryan
46
6.1k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
The Invisible Customer
myddelton
119
13k
What's in a price? How to price your products and services
michaelherold
243
11k
Transcript
Modern Drupal Development with Composer PHPSW Lightning Talks ‐ November
2016
Oliver Davies Senior Drupal/PHP Developer Appnova on Technologies @opdavies
The Old Ways Download an archive from Drupal.org Use Drush
commands (drush dl) Use Drush Make
Composer Drupal Packagist (deprecated) Composer endpoints on Drupal.org (beta) Manage
core and contrib as dependencies Both Drupal 7 and 8
Why? "Ge ng off the island" Be er versioning support
Automa c dependency management
Add a new repository $ composer config \ repositories.drupal composer
\ https://packages.drupal.org/8
composer.json { "repositories": { "drupal": { "type": "composer", "url": "https://packages.drupal.org/8"
} } }
Custom directories "extra": { "installer-paths": { "modules/contrib/{$name}": ["type:drupal-module"], "profiles/contrib/{$name}": ["type:drupal-profile"],
"themes/contrib/{$name}": ["type:drupal-theme"] } }
Adding Modules $ 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%
Adding Modules with Dependencies $ 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 project for Drupal projects Downloads core into web/ Uses
Composer’s autoload.php Custom directories for modules, themes, profiles Manages directories and file permissions Includes Drush and Drupal Console
Composer project for Drupal projects $ composer create-project \ drupal-composer/drupal-project:8.x-dev
\ some-dir --stability dev \ --no-interaction
Demo 0:00 / 1:26
Resources Using Composer to manage Drupal site dependencies ‐ h
ps:/ /www.drupal.org/node/2718229 Composer template for Drupal projects ‐ h ps:/ /github.com/drupal‐composer/drupal‐ project
Questions?