thesmart/php-url (packagist): Create, manipulate, and output any URL easily. Convert between relative and absolute URLs. Map URLs to their canonical equivalent.
Keywords: url|query|query string|canonical|relative path|absolute path