A Crash-Course in PHP Namespaces for WordPress Developers

Steve Grunwell (15.Nov.2018 at 11:30, 50 min)
Talk at php[world] 2018 (English - US)

Rating: 5 of 5

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.

Who are you?

Claim talk

Talk claims have been moved to the new Joind.in site.

Please login to the new site to claim your talk

Want to comment on this talk? Log in or create a new account or comment anonymously

Write a comment

 
Please note: you are not logged in and will be posting anonymously!
= four minus three

Comments

Rating: 5 of 5

15.Nov.2018 at 12:05 by Andrew Taylor (5 comments) via Web2 LIVE

Great talk! Started with the basics of autoloading then dove into other modern PHP practices such as loading, autoloading, and more.

One suggestion is to increase the font size of the code samples and maybe use syntax highlighting with more contrast.Some examples were difficult to read..

© Joind.in 2018