WordPress is built with PHP including all themes, plugins, and Core. PHP is the server-side scripting language for many of the world’s websites. This technical library provides you with practical, hands-on PHP web development projects, insights, master tips, improved documentation, and so much more.
This technical library includes:
- PHP Basic Fundamentals – build as you learn PHP
- PHP OOP Fundamentals – build as you learn OOP
- Insights – quick tips, insights, and master tips
- Docx – documentation to supplement the official documentation
- Other Resources – external resources just for you
PHP Basic Fundamentals
Build as you deeply learn PHP.
PHP OOP Fundamentals
These hands-on labs grow your PHP Object-oriented programming expertise.
Unit & Integration Testing
These hands-on labs grow you testing expertise and mastery.
Insights & Quick Tips
PHP-centric quick tips, master tips, and insights just for you.
Code Tip – Alternate Ternary Operator syntax ?:
The ternary operator can be confusing, as it dehydrates the longer if/else code blocks into a single line of code. It eliminates the repeating pattern. But what about the ?: syntax? How does that work? When should you use it? Check out the other syntax here. This tip is valid for JavaScript and PHP.
Code Tip: Purposeful Naming
Let’s talk about naming of variables, functions, etc. in your code. In this video, you will learn some handy guidelines on naming by intent to let your code express what it’s doing, why it exists, how to use it, and what to expect from it. This tip is valid for all programming regardless of the language or technology.
PHP Tip: What makes a conditional expression false (falsey state)?
In this video, you will learn the intent of this `if` conditional expression as well as what evaluates to false. This is known as checking the falsey state.
PHP Tip: Use array_merge and Not foreach to Merge Defaults
In this quick tip, Tonya shows you how to reduce your code when you want to merge default parameters (settings) together with the implement. She shows you a shortcode example from WordPress which uses a foreach() to accomplish what one line of code and do, i.e. using array_merge.
Code Tip: Understanding the Ternary Operator
Let’s talk about the ternary operator. It can be confusing for many. In this video, Tonya puts the if/else side-by-side with its equivalent ternary to help you know and understand it. The alternate syntax tip is found here. This tip is valid for JavaScript and PHP.
Other PHP Resources
A collection of other awesome educational resources.
PHP Nomad
Want to really level up in PHP? Make sure you also join PHP Nomad. Leading PHP developers share their insights with you each month. Their libraries are filled with PHP awesomeness. If you are a member, they have a deal waiting for you….3 months for FREE!
Laracasts
Laracasts knocks it out of the park for modern PHP web development webcasts. Jeffrey Way is accelerate your OOP and Testing chops. Although Laravel-centric and WordPress-centric, you can learn a ton from his awesome libraries. Check it out Laracasts – Learn more
PHP in Action – Codecademy
Codecademy has an interactive course that lets you write code as you learn. Check it out Learn more
PHP for WordPress – Team Treehouse
Treehouse has an introductory course taught by the awesome educator, Zac Gordon. Check it out Learn more
The Ultimate Guide to Object-Oriented PHP for WordPress Developers
Josh Pollock wrote an awesome e-book that is available to you from WP Engine. It includes PHP fundametnals, PHP 7, WP_Query, Magic methods, and more. Check it out Learn more