PHP Domain Parsing Abstraction