the ultimate wordpress development environment

36
THE ULTIMATE WORDPRESS DEVELOPMENT ENVIRONMENT Matt Geri / @MattGeri

Upload: matt-geri

Post on 16-Apr-2017

627 views

Category:

Software


0 download

TRANSCRIPT

Page 1: The Ultimate WordPress Development Environment

THE ULTIMATE WORDPRESS DEVELOPMENT ENVIRONMENT

Matt Geri / @MattGeri

Page 2: The Ultimate WordPress Development Environment

https://google.com/?q=matt+geri

Page 3: The Ultimate WordPress Development Environment

WHY?

Page 4: The Ultimate WordPress Development Environment

•Write more code in less time• Reduce the amount of bugs in your code• Implement coding standards strictly

SO THAT YOU CAN…

Page 5: The Ultimate WordPress Development Environment

SO, WHAT IS THE ULTIMATE WORDPRESS

DEVELOPMENT ENVIRONMENT?

Page 6: The Ultimate WordPress Development Environment

1. Local server2. IDE / Text Editor

3. Code checking

4. Debugging5. Deployment

Page 7: The Ultimate WordPress Development Environment

1. LOCAL SERVER•Web server•Database server•WordPress• Version control•WP-CLI

Page 8: The Ultimate WordPress Development Environment

LOCAL WEB SERVER

Page 9: The Ultimate WordPress Development Environment

VIRTUALIZE!

Page 10: The Ultimate WordPress Development Environment

WHY VIRTUALIZE?

•No manual installation required (scripted)• Portable (any platform – same environment)• Closely replicate production

Page 11: The Ultimate WordPress Development Environment

I USE VVV

Page 12: The Ultimate WordPress Development Environment

WHAT DOES IT LOOK LIKE?

Page 13: The Ultimate WordPress Development Environment

FROM THE FRONTEND

Page 14: The Ultimate WordPress Development Environment

COMMAND LINE WORDPRESS

Page 15: The Ultimate WordPress Development Environment

WP-CLI EXAMPLE

Page 16: The Ultimate WordPress Development Environment

2. IDE / Text Editor

Page 17: The Ultimate WordPress Development Environment

KNOWS WORDPRESS, DEEPLY

Page 18: The Ultimate WordPress Development Environment

BUILT IN TERMINAL

Page 19: The Ultimate WordPress Development Environment

BUILT IN SOURCE CONTROL

Page 20: The Ultimate WordPress Development Environment

BUILT IN MYSQL ADMIN

Page 21: The Ultimate WordPress Development Environment

BUILT IN TESTING

Page 22: The Ultimate WordPress Development Environment

BUILT IN SNIPPETS

Page 23: The Ultimate WordPress Development Environment

SO MUCH MORE!

• Smart refactoring• Vagrant support• Composer• Syntax linting…

Page 24: The Ultimate WordPress Development Environment

3. CODE CHECKING

• PHP Code Sniffer•WP Coding Standards

Page 25: The Ultimate WordPress Development Environment

PHPCS / WPCS

<?php// Display the titleecho $_GET[‘title’];?>

Page 26: The Ultimate WordPress Development Environment

WPCS EXAMPLE

Page 27: The Ultimate WordPress Development Environment

4. DEBUGGING

Yes, unfortunately this is the logo…

Page 28: The Ultimate WordPress Development Environment

SET A BREAKPOINT

Page 29: The Ultimate WordPress Development Environment

VISIT WEBSITE IN BROWSER

Page 30: The Ultimate WordPress Development Environment

INSPECT!

Page 31: The Ultimate WordPress Development Environment

5. DEPLOYMENT•Git•WP Pusher•Travis (CI)

Page 32: The Ultimate WordPress Development Environment

WP PUSHER

Page 33: The Ultimate WordPress Development Environment

CONNECT THEME REPO

Page 34: The Ultimate WordPress Development Environment

PUSH A CHANGE

Page 35: The Ultimate WordPress Development Environment

1. Local server2. IDE / Text Editor

3. Code checking

4. Debugging5. Deployment

Page 36: The Ultimate WordPress Development Environment

THAT’S ALL!QUESTIONS?

mattgeri.com/wceu