
- PHP
- Intermediate
About this Course
PHP is a flexible language with a long history. Being such a popular language for so long means there is a lot of code out there. There are many ways to program in PHP, and not all of them are as safe, performant, or maintainable as some of the older educational materials might have you believe.
Having so many options can be daunting to many developers as they grow from beginner to intermediate. Fortunately there are established best practices out there, and this course will help you learn about many of them.
What you'll learn
- Databases
- International Concerns
- Distributing and Loading Code
- Error Handling
Why Do We Need Best Practices?
This is an intermediate course designed to teach best practices and standards to those who already know how to program PHP at a basic level.
3 stepsDatabases and International Concerns
This stage helps to cover a few topics that are generally covered elsewhere with extremely outdated information, which these days is possible to do much more easily with core classes and functions in PHP.
10 steps-
Choosing a Database Extension
1:34
-
Choosing a database extension
3 questions
-
Working with DateTime
4:21
-
Review: Working with DateTime
3 questions
-
DateTime Comparisons
2:33
-
DateTime Comparisons
3 questions
-
Understanding Time Zones
3:56
-
Understanding Timezones
3 questions
-
Understanding UTF-8
4:14
-
Understanding UTF-8
3 questions
Autoloading and Composer
One important area for understanding best practices and standards is the area of distributing (sharing code), and using other shared code.
7 stepsCreating Distributable OOP Packages
Learn how packages are distributed and how you can package your code to be used by other developers.
9 stepsError Handling
PHP has the idea of “errors” which are different to “exceptions” and that can be very handy in production environments if you know how they work, but can lead to a little confusion if you expect things to work differently.
8 stepsTeacher
-
Phil Sturgeon
Phil is an activist for standards, code quality and code reuse in the PHP community. He has contributed to CodeIgniter, FuelPHP, Laravel and handfuls of other projects, to try and make the PHP community a better place.