traits in php – any real world examples/best practices?
Posted
by
Max
on Stack Overflow
See other posts from Stack Overflow
or by Max
Published on 2011-10-25T16:45:16Z
Indexed on
2012/10/16
23:01 UTC
Read the original article
Hit count: 174
Traits have been one of the biggest additions for PHP 5.4. I know the synatax and understand the idea behind traits, like horizontal code re-usage for common stuff like logging, security, caching etc.
However, I still dont know yet how I would make use of traits in my projects.
Are there any open source projects that already use traits? Any good articles/reading material on how to structure architectures using traits?
© Stack Overflow or respective owner