src/RegisteredDomain.php
protected function normalizeHost($url)
    {
        $host = (false!==strpos($url, '/')) ? parse_url($url, PHP_URL_HOST) : $url;
        $parts = explode('.', $host);
        $utf8Host = '';
        foreach ($parts as $part) {
            $utf8Host = $utf8Host . (($utf8Host === '') ? '' : '.') . $this->convertPunycode($part);
        }

        return mb_strtolower($utf8Host);
    }
protected function normalizeHost($url)
    {
        $host = (false!==strpos($url, '/')) ? parse_url($url, PHP_URL_HOST) : $url;
        $parts = explode('.', $host);
        $utf8Host = '';
        foreach ($parts as $part) {
            $utf8Host = $utf8Host . (($utf8Host === '') ? '' : '.') . $this->convertPunycode($part);
        }

        return mb_strtolower($utf8Host);
    }
protected function normalizeHost ( $ url ) { $ host = ( false !== strpos ( $ url , '/' ) ) ? parse_url ( $ url , PHP_URL_HOST ) : $ url ; $ parts = explode ( '.' , $ host ) ; $ utf8Host = '' ; foreach ( $ parts as $ part ) { $ utf8Host = $ utf8Host . ( ( $ utf8Host === '' ) ? '' : '.' ) . $ this -> convertPunycode ( $ part ) ; } return mb_strtolower ( $ utf8Host ) ; }
Given a URL or bare host name, return a normalized host name, converting punycode to UTF-8
and converting to lower case

@param string $url URL or host name

@return string
Given a URL or bare host name return a normalized host name converting punycode to UTF - 8 and converting to lower case