Matt Geri – Cape Town
Best job
Remote XWP
Enterprise project
Google me
mattgeri.com
Start by asking why?
Why pay attention
Or care about this setting up…
It’s simple, 3 reasons.
Tailored environment
Ex: Live environment bugs?
Open source and team NB!
Spent lots of time figuring out
5 core components
Read out
My recommendations from own env.
Don’t have to use all
Starting point
2 parts to this
Required items
Web server (nginx/apache)
DB server (MySQL)
WP Install
Recommend items
Version control (Git and SVN)
WP-CLI (Command line WordPress)
Multiple ways
MAMP/XAMPP
Self hosted apache/nginx
Recommendation
Scrap the above
Virtualize!
Computer in Computer
Read through
Full Solution (Nginx, MySQL, WP)
Has it’s issues (slow provision)
Never failed me / everything I need
Industry standard
Wocker, WPLib Box, VagrantPress, HGV etc
Unfortunately: CLI
Not difficult to pick up
SSH in the Ubuntu Server (VM)
Local WP Installs
Tools for managing WP
Stable + Trunk
Before we finish
WP from CLI
Super useful
Installed VVV
create posts, manage users, change options etc
Explain
Can do tons more!
Not Photoshop logo
Not IDE fan until…
Usual objections (Slow, bloated etc)
Highly recommend that you give it a try
Everything all in one place (Version Control, Database, FTP/SFTP, Vagrant, Debugging)
No IDE/Text Compares
Knows PHP too
Fav: Autocomplete actions/filters (pic)
WP functions
Click navigation
Bottom toolbar
Full unix terminal
Multiple tabs
SVN, Git, etc
Visual diff, blame
Merge, Changelists, more
Plus Github integration (Pull, PR)
Full DB control
Schema manipulation
Data manipulation
Export
Custom queries
Tests inside IDE
Click locations
Code coverage (color coding)
Snippets
Emmet (HTML/CSS)
Def. google Emmet
Read out
Code checking is vital
For security/code maintenance
Eliminates bugs and prevents attacks
Two tools (read)
Question?
Explain why
Make sure you follow standards
Potential security issues
Sanitization issue
Missing doc block
Any code style issue
Defacto
Mostly for stack traces / profiling
Breakpoint debugging!
print_r or var_dump? Check it!
Ships with VVV (xdebug_on)
PhpStorm excellent support (plus others)
PhpStorm (gutter)
Atom / Sublime (plugin)
Chrome extension
Stopped at our point
Variables
Run expressions (count array)
Step into, over, out
Many ways
I use 3 methods
Vanilla Git – clone/pull
WP Pusher – plugin deploy
Travis CI – Full build, branch change, run tests
Excellent plugin
Breeze themes/plugins (no FTP)
GH, BB, Gitlab
Example
Link to Github repo
My theme repo
Push master = deploy
Manual trigger
Same for plugins
Recap
Thanks again
Hope enjoyed
URL Resources
Contibutor day
Any questions?