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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Tom J Nowell
August 03, 2018
0
92
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
1.1k
REST APIs for Absolute Beginners
tarendai
0
1k
VVV 2
tarendai
0
810
WordCamp Europe 2016 - Handling Anxiety
tarendai
1
510
Escape From New York
tarendai
0
760
WP The Right Way
tarendai
0
1.1k
Code Deodorant 2014
tarendai
1
760
Adv WP CLI
tarendai
0
740
WP CLI
tarendai
0
700
Featured
See All Featured
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
120
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
Why Our Code Smells
bkeepers
PRO
340
58k
WCS-LA-2024
lcolladotor
0
450
First, design no harm
axbom
PRO
2
1.1k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
240
Designing Experiences People Love
moore
144
24k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.1k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Practical Orchestrator
shlominoach
191
11k
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