added PHP version of mk