Provides a RFC 3986 compliant solution to URL parsing.
UriParser provides a method for parsing URLs that accurately complies with
the RFC specification. Unlike the built function
parse_url(), the parser in
this library is based on the ABNF definition of the generic URI syntax. In
other words, this library does not allow any kind of invalid URLs and parses
them exactly as defined in the specification.
While the intention of this library is to provide an accurate implementation for URL parsing, it possible to use this library for parsing any kind of valid URIs, since the parsing is simply based on the generic URI syntax. Some of the features are simply more suited to dealing with URLs. The parser, however, does not provide any additional validation based on the URI scheme.
While the RFC specification does not allow UTF-8 characters in URIs, these are still commonly used, especially in user input. To accommodate this fact, the parser provides two additional compatibility modes that permit UTF-8 in some of the URI components in addition to providing a simple support for international domain names.
Copyright: Copyright (c) 2013, Riikka Kalliomäki
License: MIT License
Author: Riikka Kalliomäki firstname.lastname@example.org
Located at UriParser.php