Class: url
A bunch of handy methods to work with URLs
Methods
-
url::current
Returns the current URL
-
url::has_query
Checks if the URL has a query string attached
-
url::short
Shortens an URL
It removes http:// or https:// and uses str::short afterwards -
url::strip_hash
Strips a hash value from the URL
-
url::strip_query
Strips the query from the URL
-
url::valid
Checks for a valid URL