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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Oliver Davies
November 09, 2016
Programming
450
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
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.6k
TDD - Test Driven Drupal
opdavies
0
4.4k
Building "Build Configs"
opdavies
0
650
Communities and contribution
opdavies
0
350
Working without Workspace
opdavies
0
380
Things you should know about PHP
opdavies
1
930
An Introduction to Mob Programming
opdavies
0
470
Deploying PHP applications with Ansible, Ansible Vault and Ansistrano
opdavies
0
6.6k
Other Decks in Programming
See All in Programming
マイコン向けの軽量Ruby「PicoRuby」で各種デバイスを制御するネイティブアプリの実現手法
bash0c7
0
470
すこし踏み込む CancellationToken
htkym
2
1.6k
難しいけど、読めた。- OSSの入口に立った話。
sts11142
0
130
Findy - エンジニア向け会社紹介/Findy Company Deck
findyinc
6
400k
Webの地図
yosuke_furukawa
PRO
6
5k
APNsからLive Activityを開始する話
yumnumm
0
120
WebRTC映像をAirPlayに対応させる挑戦.pdf
monolithic_adam
0
330
Are APIs Still Relevant in the AI Era?
soyuka
0
390
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
170
モデルのリファクタリングが難しいと思ったら、そもそも複雑だったのはビジネス仕様だった ? / is-the-business-domain-the-real-complexity
hatsu38
0
430
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
0
180
AWS CDKのカスタムリソースでContinuum(旧Security Agent)を実装した話 | Implementing Continuum (formerly Security Agent) via AWS CDK Custom Resource
akihisaikeda
2
120
Featured
See All Featured
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.9k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
270
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Marketing to machines
jonoalderson
1
5.8k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
710
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.9k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
730
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
120
120k
We Are The Robots
honzajavorek
0
380
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
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?