Library to create stated classes in PHP