Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Modern Drupal Development with Composer
Search
Oliver Davies
November 09, 2016
Programming
470
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Modern Drupal Development with Composer
PHPSW lightning talk
Oliver Davies
November 09, 2016
Transcript
15 slides
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?
More Decks by Oliver Davies
See All by Oliver Davies
Building Static Websites with Sculpin
opdavies
0
1.8k
Taking Flight with Tailwind CSS
opdavies
0
5.6k
TDD - Test Driven Drupal
opdavies
0
4.4k
Building "Build Configs"
opdavies
0
670
Communities and contribution
opdavies
0
370
Working without Workspace
opdavies
0
430
Things you should know about PHP
opdavies
1
950
An Introduction to Mob Programming
opdavies
0
490
Deploying PHP applications with Ansible, Ansible Vault and Ansistrano
opdavies
0
6.7k
Other Decks in Programming
See All in Programming
社内AIエージェント「Askワンバン」における コストチューニングの取り組み
t0yohei
0
180
[DroidKnights 2026] Workflow AX 적용기 — 자동 정책 정리부터 E2E까지
dayeon
0
120
Apache Airflow Introduction
leew
1
100
Lean で手続き的プログラム の証明が書けるようになった
inoueasei
8
3.8k
imagewebp()の向こう側: WebPはなぜ JPEG・PNGより軽いのか
yuzneri
0
150
TS 7.0 で baseUrl が使えなくなった今、パスエイリアスをどうするか
bicstone
2
840
眠らない開発チームの作り方
biwakonbu
0
140
선언형 햅틱 라이브러리 진동을 소개합니다
l2hyunwoo
1
330
どうしても Eloquent でリポジトリパターンをやりたいんだ #phpcon_niigata / phpcon-niigata-2026
shogogg
0
690
Skills Are the New npm [AAIF Bengaluru, Nov 2026]
shivamsaraswat
0
130
なぜ私たちは「現時点では」KMPの導入を見送ったのか
chigichan24
1
640
あなたはMCPの機能を、まだ知らない。
4geru
1
740
Featured
See All Featured
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
700
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
570
The browser strikes back
jonoalderson
0
2k
The Limits of Empathy - UXLibs8
cassininazir
2
800
Game over? The fight for quality and originality in the time of robots
wayneb77
1
340
Git: the NoSQL Database
bkeepers
PRO
433
67k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.2k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
7.1k
Fireside Chat
paigeccino
43
4.1k
My Coaching Mixtape
mlcsv
0
400
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
540