PHP version of fabricez