All Notable changes to PHP Domain Parser
5.x series will be documented in this file
Pdp\DomainInterface
interface implemented byPdp\Domain
andPdp\PublicSuffix
Pdp\Domain::getContent
returns the Domain name value replacesPdp\Domain::getDomain
Pdp\Domain
implements theCountable
interface.
Pdp\Domain
domain part computation (public suffix, registrable domain and sub domain)Pdp\Domain
andPdp\PublicSuffix
host validation compliance to RFC improved
Pdp\Domain::getDomain
use insteadPdp\Domain::getContent
- None
Pdp\Rules::getPublicSuffix
returns aPdp\PublicSuffix
value objectPdp\Rules::__set_state
is implementedPdp\Domain::toUnicode
returns aPdp\Domain
with its value converted to its Unicode formPdp\Domain::toAscii
returns aPdp\Domain
with its value converted to its AScii formPdp\PublicSuffix::toUnicode
returns aPdp\PublicSuffix
with its value converted to its Unicode formPdp\PublicSuffix::toAscii
returns aPdp\PublicSuffix
with its value converted to its AScii form
Pdp\Domain::getDomain
returns the normalized form of the domain namePdp\PublicSuffix
is no longer internal.- Normalizes IDN conversion using a internal
IDNConverterTrait
- Internal code improved by requiring PHPStan for development
- None
- None
Pdp\Rules::createFromPath
named constructor to returns a new instance from a pathPdp\Rules::createFromString
named constructor to returns a new instance from a string
- None
- None
- None
Pdp\Exception
a base exception for the libraryPdp\Rules
a class to resolve domain name against the public suffix listPdp\Domain
an immutable value object to represents a parsed domain namePdp\Installer
a class to enable improve PSL maintenancePdp\Cache
a PSR-16 file cache implementation to cache a local copy of the PSLPdp\Manager
a class to enable managing PSL sources andRules
objects creationPdp\Converter
a class to convert the PSL into a PHP array
- invalid domain names improved supported
- idn_* conversion error better handled
- domain name with RFC3986 encoded string improved supported
- None
- PHP5 support
- URL Parsing capabilities and domain name validation
Pdp\PublicSuffixList
class replaced by thePdp\Rules
classPdp\PublicSuffixManager
class replaced by thePdp\Manager
classPdp\HttpAdapter\HttpAdapterInterface
interface replaced by thePdp\HttpClient
interfacePdp\HttpAdapter\CurlHttpAdapter
class replaced by thePdp\CurlHttpClient
class