Composer_and_WordPress__1_.pdf

Eba4cc68bfbc2b59c3c3a3cf789075f0?s=47 Tom J Nowell
August 03, 2018
40

 Composer_and_WordPress__1_.pdf

An overview of how to install WordPress, themes and plugins via Composer

Eba4cc68bfbc2b59c3c3a3cf789075f0?s=128

Tom J Nowell

August 03, 2018
Tweet

Transcript

  1. Composer & WordPress Deploy All The Things - Tom J

    Nowell
  2. 1. What is Composer 2. Installing WordPress 3. Installing a

    Theme 4. Installing a Plugin
  3. What is Composer?

  4. composer.json

  5. Is it Valid?

  6. composer.json

  7. Installing WordPress Via Packagist

  8. None
  9. None
  10. composer.json

  11. None
  12. None
  13. Installing Themes WPackagist to the rescue

  14. None
  15. None
  16. None
  17. Installing a Plugin Lets install Akismet

  18. None
  19. None
  20. None
  21. Some notes lock files, dev dependencies, the vendor folder

  22. The Vendor Folder Contains libraries and an autoloader

  23. The Lock File Contains a record of what Composer installed

  24. "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": "*" } }
  25. Dev vs Production composer install --dev composer install --no-dev

  26. Questions? https://tomjn.com @tarendai