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
Composer_and_WordPress__1_.pdf
Search
Tom J Nowell
August 03, 2018
0
62
Composer_and_WordPress__1_.pdf
An overview of how to install WordPress, themes and plugins via Composer
Tom J Nowell
August 03, 2018
Tweet
Share
More Decks by Tom J Nowell
See All by Tom J Nowell
Using Blocks Outside The Editor
tarendai
0
770
REST APIs for Absolute Beginners
tarendai
0
810
VVV 2
tarendai
0
600
WordCamp Europe 2016 - Handling Anxiety
tarendai
1
360
Escape From New York
tarendai
0
630
WP The Right Way
tarendai
0
970
Code Deodorant 2014
tarendai
1
630
Adv WP CLI
tarendai
0
610
WP CLI
tarendai
0
500
Featured
See All Featured
A designer walks into a library…
pauljervisheath
201
24k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
248
20k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
34
1.9k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
20
7.2k
Debugging Ruby Performance
tmm1
71
11k
10 Git Anti Patterns You Should be Aware of
lemiorhan
652
58k
Speed Design
sergeychernyshev
9
270
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
44
4.7k
Design by the Numbers
sachag
277
18k
A Philosophy of Restraint
colly
200
16k
Fontdeck: Realign not Redesign
paulrobertlloyd
79
5.1k
Facilitating Awesome Meetings
lara
46
5.8k
Transcript
Composer & WordPress Deploy All The Things - Tom J
Nowell
1. What is Composer 2. Installing WordPress 3. Installing a
Theme 4. Installing a Plugin
What is Composer?
composer.json
Is it Valid?
composer.json
Installing WordPress Via Packagist
None
None
composer.json
None
None
Installing Themes WPackagist to the rescue
None
None
None
Installing a Plugin Lets install Akismet
None
None
None
Some notes lock files, dev dependencies, the vendor folder
The Vendor Folder Contains libraries and an autoloader
The Lock File Contains a record of what Composer installed
"require-dev" Add dev specific plugins/packages "require" : { "johnpbloch/wordpress": ">=4.9",
"wpackagist-theme/twentyseventeen": "*", "wpackagist-plugin/akismet": "*", "php": ">=7.0" }, "require-dev" : { "wpackagist-plugin/query-monitor": "*" } }
Dev vs Production composer install --dev composer install --no-dev
Questions? https://tomjn.com @tarendai