Service layer tool for php