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
400
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.3k
TDD - Test Driven Drupal
opdavies
0
4.1k
Building "Build Configs"
opdavies
0
490
Communities and contribution
opdavies
0
240
Working without Workspace
opdavies
0
290
Things you should know about PHP
opdavies
1
840
An Introduction to Mob Programming
opdavies
0
350
Deploying PHP applications with Ansible, Ansible Vault and Ansistrano
opdavies
0
6.5k
Other Decks in Programming
See All in Programming
One Enishi After Another
snoozer05
PRO
0
180
contribution to astral-sh/uv
shunsock
0
580
モテるデスク環境
mozumasu
3
1.4k
AI Agent 時代的開發者生存指南
eddie
4
2.3k
Blazing Fast UI Development with Compose Hot Reload (droidcon London 2025)
zsmb
0
450
エンジニアに事業やプロダクトを理解してもらうためにやってること
murabayashi
0
120
kiroとCodexで最高のSpec駆動開発を!!数時間で web3ネイティブなミニゲームを作ってみたよ!
mashharuki
0
1.1k
Blazing Fast UI Development with Compose Hot Reload (Bangladesh KUG, October 2025)
zsmb
2
450
CSC305 Lecture 12
javiergs
PRO
0
250
はじめてのDSPy - 言語モデルを『プロンプト』ではなく『プログラミング』するための仕組み
masahiro_nishimi
4
18k
GitHub Copilotを使いこなせ!/mastering_github_copilot!
kotakageyama
2
740
Researchlyの開発で参考にしたデザイン
adsholoko
0
110
Featured
See All Featured
Side Projects
sachag
455
43k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
31
2.7k
The Invisible Side of Design
smashingmag
302
51k
Keith and Marios Guide to Fast Websites
keithpitt
412
23k
Designing Experiences People Love
moore
142
24k
What's in a price? How to price your products and services
michaelherold
246
12k
Visualization
eitanlees
150
16k
How to Think Like a Performance Engineer
csswizardry
27
2.2k
Making Projects Easy
brettharned
120
6.4k
Agile that works and the tools we love
rasmusluckow
331
21k
Building a Scalable Design System with Sketch
lauravandoore
463
33k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
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?