An overview of how to install WordPress, themes and plugins via Composer
Composer & WordPressDeploy All The Things - Tom J Nowell
View Slide
1. What is Composer2. Installing WordPress3. Installing a Theme4. Installing a Plugin
What is Composer?
composer.json
Is it Valid?
Installing WordPressVia Packagist
Installing ThemesWPackagist to the rescue
Installing a PluginLets install Akismet
Some noteslock files, dev dependencies, the vendor folder
The Vendor FolderContains libraries and an autoloader
The Lock FileContains 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 Productioncomposer install --devcomposer install --no-dev
Questions?https://tomjn.com@tarendai