Class utils for use with symfony or PHP