Class RegisteredDomain
Class RegisteredDomain
Determine the registrable domain portion of a URL, respecting the public suffix list conventions
Namespace: Geekwright\RegDom
Package: Geekwright\RegDom
License: License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
Author: Florian Sager, 06.08.2008, sager@agitos.de
Author: Marcus Bointon (https://github.com/Synchro/regdom-php)
Author: Richard Griffith richard@geekwright.com
Located at lass/libraries/vendor/geekwright/regdom/src/RegisteredDomain.php
Package: Geekwright\RegDom
License: License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
Author: Florian Sager, 06.08.2008, sager@agitos.de
Author: Marcus Bointon (https://github.com/Synchro/regdom-php)
Author: Richard Griffith richard@geekwright.com
Located at lass/libraries/vendor/geekwright/regdom/src/RegisteredDomain.php
public
|
|
protected
string
|
#
normalizeHost( string $url )
Given a URL or bare host name, return a normalized host name, converting punycode to UTF-8 and converting to lower case |
protected
string
|
|
protected
string
|
#
decodePunycode( string $encoded )
convert punycode to UTF-8 (the hard way) Used only if idn_to_utf8() is not available |
public
string|null
|
#
getRegisteredDomain( string $host )
Determine the registered domain portion of the supplied host string |
protected
null|string
|
#
findRegisteredDomain( string[] $remainingSigningDomainParts, string[] & $treeNode )
Recursive helper method to query the PSL tree |
protected
|
$tree
|
|
protected
|
$psl
|