◆ __construct()
◆ convertPunycode()
Convert a punycode string to UTF-8 if needed
- Parameters
-
| string | $part | host component |
- Returns
- string host component as UTF-8
◆ decodePunycode()
| decodePunycode |
( |
|
$encoded | ) |
|
|
protected |
◆ findRegisteredDomain()
| findRegisteredDomain |
( |
|
$remainingSigningDomainParts, |
|
|
& |
$treeNode |
|
) |
| |
|
protected |
Recursive helper method to query the PSL tree
- Parameters
-
| string[] | $remainingSigningDomainParts | parts of domain being queried |
| string[] | $treeNode | subset of tree array by reference |
- Returns
- null|string
◆ getRegisteredDomain()
| getRegisteredDomain |
( |
|
$host | ) |
|
Determine the registered domain portion of the supplied host string
- Parameters
-
| string | $host | a host name or URL containing a host name |
- Returns
- string|null shortest registrable domain portion of the supplied host or null if invalid
◆ normalizeHost()
Given a URL or bare host name, return a normalized host name, converting punycode to UTF-8 and converting to lower case
- Parameters
-
| string | $url | URL or host name |
- Returns
- string
◆ $psl
◆ $tree
The documentation for this class was generated from the following file: