This is a very simple class that wraps around the parse_url PHP function.
It can parse an URL and store the URL parts in class variables for the URL scheme, host, domain, top level domain, port, user, password and query arguments.
If the URL scheme is missing, it assumes it is http .