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
310
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 "Build Configs"
opdavies
0
240
TDD - Test Driven Drupal
opdavies
0
2.9k
Communities and contribution
opdavies
0
67
Working without Workspace
opdavies
0
140
Taking Flight with Tailwind CSS
opdavies
0
4.2k
Things you should know about PHP
opdavies
1
640
An Introduction to Mob Programming
opdavies
0
160
Building Static Websites with Sculpin
opdavies
0
1.2k
Deploying PHP applications with Ansible, Ansible Vault and Ansistrano
opdavies
0
5.7k
Other Decks in Programming
See All in Programming
ADRを一年運用してみた/adr_after_a_year
hanhan1978
7
2.2k
FigmaとPHPで作る1ミリたりとも表示崩れしない最強の帳票印刷ソリューション
ttskch
39
18k
エンターテイメント業界で利用されるAWS
demuyan
0
200
Build with AI 2024 Seoul - 제로부터 시작하는 Flutter with Gemini 생활 - 박제창
itsmedreamwalker
0
200
AWS Application Composerで始める、 サーバーレスなデータ基盤構築 / 20240406-jawsug-hokuriku-shinkansen
kasacchiful
1
250
0→1と1→10の狭間で Javaという技術選定を振り返る/Reflecting on the Decision to Choose Java Between Scaling from 0 to 1 and 1 to 10
jaguar_imo
2
370
What We Can Learn From OSS
inouehi
0
400
スキーマ駆動開発による品質とスピードの両立 - 私達は何故、スキーマを書くのか
kentaroutakeda
0
120
GitHub Actionsで泣かないためにやっておきたい設定 / Recommended GHA settings to avoid crying
pinkumohikan
3
490
⼤規模⾔語モデルの拡張(RAG)が 終わったかも知れない件について
nearme_tech
22
15k
オブジェクト指向のリ・オリエンテーション~歴史を振り返り、AI時代に向きなおる~
hanyudaeiiti
10
5.6k
プールにゆこう
irof
2
120
Featured
See All Featured
Statistics for Hackers
jakevdp
789
220k
The World Runs on Bad Software
bkeepers
PRO
61
6.7k
Building Better People: How to give real-time feedback that sticks.
wjessup
354
18k
Rebuilding a faster, lazier Slack
samanthasiow
72
8.2k
Build your cross-platform service in a week with App Engine
jlugia
225
17k
Raft: Consensus for Rubyists
vanstee
132
6.2k
Making the Leap to Tech Lead
cromwellryan
123
8.5k
Why You Should Never Use an ORM
jnunemaker
PRO
50
8.6k
Side Projects
sachag
451
41k
Design by the Numbers
sachag
274
18k
GraphQLの誤解/rethinking-graphql
sonatard
50
9.2k
Producing Creativity
orderedlist
PRO
336
39k
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?