Traits in my opinion are the greatest thing to happen to PHP since PHP 5.  They provide a way to re-use code between otherwise unrelated classes.  I’m giving a talk on traits at tomorrow night’s GTA-PHP Meetup with just a few slides:

The bulk of the talk will be actually trying some demos I’ve prepared. You can get them from my github. I’ve included README.txt files which describe what each demo is about in case you can’t make it out to the meetup, or you’ve found this after the fact.

Advertisements