Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

The Ultimate WordPress Development Environment

WordCamp Europe Vienna, 2016 talk on WordPress development environments.

  • Login to see the comments

The Ultimate WordPress Development Environment

  1. 1. THE ULTIMATE WORDPRESS DEVELOPMENT ENVIRONMENT Matt Geri / @MattGeri
  2. 2. https://google.com/?q=matt+geri
  3. 3. WHY?
  4. 4. • Write more code in less time • Reduce the amount of bugs in your code • Implement coding standards strictly SO THAT YOU CAN…
  5. 5. SO, WHAT IS THE ULTIMATE WORDPRESS DEVELOPMENT ENVIRONMENT?
  6. 6. 1. Local server 2. IDE / Text Editor 3. Code checking 4. Debugging 5. Deployment
  7. 7. 1. LOCAL SERVER • Web server • Database server • WordPress • Version control • WP-CLI
  8. 8. LOCAL WEB SERVER
  9. 9. VIRTUALIZE!
  10. 10. WHY VIRTUALIZE? • No manual installation required (scripted) • Portable (any platform – same environment) • Closely replicate production
  11. 11. I USE VVV
  12. 12. WHAT DOES IT LOOK LIKE?
  13. 13. FROM THE FRONTEND
  14. 14. COMMAND LINE WORDPRESS
  15. 15. WP-CLI EXAMPLE
  16. 16. 2. IDE / Text Editor
  17. 17. KNOWS WORDPRESS, DEEPLY
  18. 18. BUILT IN TERMINAL
  19. 19. BUILT IN SOURCE CONTROL
  20. 20. BUILT IN MYSQL ADMIN
  21. 21. BUILT IN TESTING
  22. 22. BUILT IN SNIPPETS
  23. 23. SO MUCH MORE! • Smart refactoring • Vagrant support • Composer • Syntax linting…
  24. 24. 3. CODE CHECKING • PHP Code Sniffer • WP Coding Standards
  25. 25. PHPCS / WPCS <?php // Display the title echo $_GET[‘title’]; ?>
  26. 26. WPCS EXAMPLE
  27. 27. 4. DEBUGGING Yes, unfortunately this is the logo…
  28. 28. SET A BREAKPOINT
  29. 29. VISIT WEBSITE IN BROWSER
  30. 30. INSPECT!
  31. 31. 5. DEPLOYMENT •Git •WP Pusher •Travis (CI)
  32. 32. WP PUSHER
  33. 33. CONNECT THEME REPO
  34. 34. PUSH A CHANGE
  35. 35. 1. Local server 2. IDE / Text Editor 3. Code checking 4. Debugging 5. Deployment
  36. 36. THAT’S ALL! QUESTIONS? mattgeri.com/wceu

×