Uri
class Uri (View source)
Constants
| ASCII |
Use with |
| UNICODE |
Use with |
Properties
| static protected array | $defaultPorts | Define default port to schemes, you can customize in a extended class
If put a new port with scheme he is removed in final url, eg. |
|
| static protected array | $defaultSchemes | Define default schemes, you can customize in a extended class
If put a new scheme the host is converted to lower-case, eg. |
Methods
Convert text to URL format
Canonicalize paths
Normalize URL, include canonicalized path
Reorder querystring by "keys"
if: Uri::canonquery('z=1&u=2&a=5') returns a=5&u=2&z=1
Details
static string
encodepath(string $path, int $type = null)
Convert text to URL format
static string
canonpath(string $path)
Canonicalize paths
static string|bool
normalize(string $url)
Normalize URL, include canonicalized path
static string
canonquery($query, string $prefix = '')
Reorder querystring by "keys"
if: Uri::canonquery('z=1&u=2&a=5') returns a=5&u=2&z=1