refactoring class namespacing and changing PHP requirement