src/Url.php
public static function build($url, $replacement=[], &$newUrlParts=null)
    {
        return HttpBuildUrl::build($url, $replacement, $newUrlParts);
    }
public static function build($url, $replacement=[], &$newUrlParts=null)
    {
        return HttpBuildUrl::build($url, $replacement, $newUrlParts);
    }
Build an URL

@param string|array $url Base url or parts of the url (aliases is not supported), to build from scratch use any falsy value, e.g. [], null or ''
@param array $replacement [optional] Associative array like parse_url() returns
@param array &$newUrlParts [optional] If set, it will be filled with the parts of the composed url like parse_url() would return
@return string The new URL string