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
480
Communities and contribution
opdavies
0
240
Working without Workspace
opdavies
0
280
Things you should know about PHP
opdavies
1
820
An Introduction to Mob Programming
opdavies
0
330
Deploying PHP applications with Ansible, Ansible Vault and Ansistrano
opdavies
0
6.4k
Other Decks in Programming
See All in Programming
Scale out your Claude Code ~自社専用Agentで10xする開発プロセス~
yukukotani
9
2.7k
パスタの技術
yusukebe
1
530
『リコリス・リコイル』に学ぶ!! 〜キャリア戦略における計画的偶発性理論と変わる勇気の重要性〜
wanko_it
1
610
Microsoft Orleans, Daprのアクターモデルを使い効率的に開発、デプロイを行うためのSekibanの試行錯誤 / Sekiban: Exploring Efficient Development and Deployment with Microsoft Orleans and Dapr Actor Models
tomohisa
0
220
Trem on Rails - Prompt Engineering com Ruby
elainenaomi
1
100
コーディングエージェント時代のNeovim
key60228
1
110
ソフトウェアテスト徹底指南書の紹介
goyoki
1
120
ライブ配信サービスの インフラのジレンマ -マルチクラウドに至ったワケ-
mirrativ
2
270
A Gopher's Guide to Vibe Coding
danicat
0
180
Understanding Ruby Grammar Through Conflicts
yui_knk
1
140
AWS発のAIエディタKiroを使ってみた
iriikeita
1
110
Honoアップデート 2025年夏
yusukebe
1
870
Featured
See All Featured
Building Adaptive Systems
keathley
43
2.7k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.4k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
Into the Great Unknown - MozCon
thekraken
40
2k
The Cult of Friendly URLs
andyhume
79
6.6k
jQuery: Nuts, Bolts and Bling
dougneiner
64
7.9k
Intergalactic Javascript Robots from Outer Space
tanoku
272
27k
Optimizing for Happiness
mojombo
379
70k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.4k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.9k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
229
22k
GitHub's CSS Performance
jonrohan
1032
460k
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?