Way back in 2009, PHP 5.3 was released to the world and with it brought support for PHP namespaces — a way of easily separating your code from other developers’ code, which has since become the de facto way of encapsulating functionality across the PHP ecosystem.
With namespaces, multiple packages could use the same class and function names without conflict, because each one would operate in their own PHP namespaces. Unfortunately, many PHP developers who focus on WordPress development may be in the dark on this extremely useful language feature.
This talk aims to shed light on PHP namespaces, especially targeted at WordPress developers who haven't yet encountered them. Attendees will leave the talk with a firm grasp on PHP namespaces, how they work, and how they can be implemented in plugins and themes.
✨ View slides ✨
- A Crash-course in PHP Namespaces for WordPress Developers — the blog post that started this all.
- WordCamp Kent 2019 — June 15, 2019 (PDF)
- WordCamp Detroit 2019 — May 18, 2019 (PDF)
- php[world] 2018 — November 15, 2018 (Joind.in, PDF)