One of the unsung heroes of PHP 8 is PHP attributes. Attributes are a language-native way to provide accessible metadata on almost any language construct. Huzzah! Joy! New toys!

So what? What can we actually do with attributes, and how can we make them even more powerful? In particular, what can they replace in our older code?

This session will cover PHP attributes, what they are and how they work, as well as how to make them even more powerful with AttributeUtils, a robust user-space library for working with attributes.

Comments

Please login to leave a comment

Great talk from someone *very* plugged into PHP attributes. Deeply technical (rough at the end of a long day of sessions), and the talk does a great job of outlining how attributes can be used (or abused) and their limitations.

Joseph Leedy at 11:57 on 27 Oct 2025

Awesome presentation, thanks! I learned a lot that I want to dig deeper into.