src/Url.php
public static function parseQueryStringFromUrl($url)
    {
        $query = (string) parse_url($url, \PHP_URL_QUERY);
        parse_str($query, $result);
        return $result;
    }
public static function parseQueryStringFromUrl($url)
    {
        $query = (string) parse_url($url, \PHP_URL_QUERY);
        parse_str($query, $result);
        return $result;
    }
Parse URL and return query string as assoc array

@param string $url
@return array