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
61
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
710
REST APIs for Absolute Beginners
tarendai
0
760
VVV 2
tarendai
0
530
WordCamp Europe 2016 - Handling Anxiety
tarendai
1
330
Escape From New York
tarendai
0
610
WP The Right Way
tarendai
0
940
Code Deodorant 2014
tarendai
1
610
Adv WP CLI
tarendai
0
580
WP CLI
tarendai
0
470
Featured
See All Featured
Atom: Resistance is Futile
akmur
259
25k
Reflections from 52 weeks, 52 projects
jeffersonlam
345
19k
Building Flexible Design Systems
yeseniaperezcruz
319
37k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
274
13k
[RailsConf 2023] Rails as a piece of cake
palkan
23
3.9k
Web development in the modern age
philhawksworth
202
10k
A better future with KSS
kneath
231
16k
KATA
mclloyd
15
12k
The Illustrated Children's Guide to Kubernetes
chrisshort
31
46k
The Brand Is Dead. Long Live the Brand.
mthomps
49
28k
What's in a price? How to price your products and services
michaelherold
237
11k
Typedesign – Prime Four
hannesfritz
36
2.1k
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