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
390
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.7k
Taking Flight with Tailwind CSS
opdavies
0
5.2k
TDD - Test Driven Drupal
opdavies
0
4.1k
Building "Build Configs"
opdavies
0
480
Communities and contribution
opdavies
0
230
Working without Workspace
opdavies
0
270
Things you should know about PHP
opdavies
1
800
An Introduction to Mob Programming
opdavies
0
310
Deploying PHP applications with Ansible, Ansible Vault and Ansistrano
opdavies
0
6.3k
Other Decks in Programming
See All in Programming
20250628_非エンジニアがバイブコーディングしてみた
ponponmikankan
0
430
VS Code Update for GitHub Copilot
74th
1
390
Webの外へ飛び出せ NativePHPが切り拓くPHPの未来
takuyakatsusa
2
360
Gleamという選択肢
comamoca
6
760
プロダクト志向なエンジニアがもう一歩先の価値を目指すために意識したこと
nealle
0
110
0626 Findy Product Manager LT Night_高田スライド_speaker deck用
mana_takada
0
110
既存デザインを変更せずにタップ領域を広げる方法
tahia910
1
240
XP, Testing and ninja testing
m_seki
3
190
GitHub Copilot and GitHub Codespaces Hands-on
ymd65536
1
120
なぜ「共通化」を考え、失敗を繰り返すのか
rinchoku
1
510
KotlinConf 2025 現地で感じたServer-Side Kotlin
n_takehata
1
230
[初登壇@jAZUG]アプリ開発者が気になるGoogleCloud/Azure+wasm/wasi
asaringo
0
130
Featured
See All Featured
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
The Cost Of JavaScript in 2023
addyosmani
51
8.4k
Into the Great Unknown - MozCon
thekraken
39
1.9k
A Tale of Four Properties
chriscoyier
160
23k
Documentation Writing (for coders)
carmenintech
72
4.9k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
30
2.1k
What's in a price? How to price your products and services
michaelherold
246
12k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
181
53k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
10
930
Practical Orchestrator
shlominoach
188
11k
Speed Design
sergeychernyshev
32
1k
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?