Releases: jeremykendall/php-domain-parser
Releases · jeremykendall/php-domain-parser
6.4.0
Added
DomainName::withRootLabel,DomainName::withoutRootLabel,DomainName::isAbsolutemethods to handle absolute domain names.DomainName::whento allow conditionable when building the domain.
Fixed
- Absolute domain name can now also be resolved by the package see issue #361 prior to this release an exception was thrown.
- Since we no longer support PHP7 type hint and return type are improved.
- Resolving private suffixes that have a wildcarded subdomain suffix #363 by @wikando-ck
Warning
When upgrading to version 6.4 you MUST refresh your local cache for the fix on private domain resolution to take effect.
Deprecated
- None
Removed
- None
version 6.3.1
What's Changed
- Add support for PHP8.4
Full Changelog: 6.3.0...6.3.1
version 6.3.0
Added
RegisteredNameclass to allow domain with IP4-like labels
Fixed
- Using PHPUnit 10
Domaindecorates the newRegisteredNameclass #347Host::withoutLabelworks without arguments.
Deprecated
- None
Removed
- None
version 6.2.0
Added
- None
Fixed
-
Internal code to make services
readonly -
Internal code to make VO properties
readonly -
Internal code improved typehinting
-
Deprecated
-
None
Removed
- PHP7 and PHP8.0 support
version 6.1.2
Added
- None
Fixed
- #321 remove regression when resolving private domain suffix.
Deprecated
- None
Removed
- None
version 6.1.1
Added
- None
Fixed
- #321 improve resolving private domain suffix.
Rules::getPrivateDomainis more restrictive It will throw if the domain name does not contain a valid "private" TLD.
Deprecated
- None
Removed
- None
version 6.1.0
Added
TimeToLive::untilTimeToLive::fromDurationString
Fixed
.gitattributesfiles to be filter out.TimeToLivemarked as internalHost::toUnicodemethod MUST never throw exceptions on conversion according to RFC3490.UnableToResolveDomaintypo in the exception message
Deprecated
TimeToLive::fromDateTimeInterfaceuseTimeToLive::fromNowTimeToLive::fromScalaruseTimeToLive::convert
Removed
- None
version 6.0.0
Added
- Adding proper Interfaces
- Added
Domain::clearto easily initialize an empty domain object - Added
Domain::sliceto easily slice a domain object - Added
ResolvedDomainobject to normalize Resolver results. - Added
Suffixobject to replace thePublicSuffixobject from v5. - Public Suffix List and IANA Top Level Domain List are fully decoupled
- Added
Idna, IDN support has been completely revamped - Added internal
Streamclass, to improve path/stream resolution - Resolver uses by default UTS#46 IDNA2008 algorithm to convert domain names
- Storage capability is now optional and can be based on PHP-FIG related interfaces to improve interoperability
Pdp\TopLevelDomains::getIANADomainwhich throws on syntax error and if no effective TLD is found (behave likePdp\TopLevelDomains::resolvein v5).
Fixed
- The
Pdp\Domainclass not longer directly exposes Effective TLD status. - Effective TLD resolver (
Pdp\Rules::resolveandPdp\TopLevelDomains::resolve) no longer accept IDNA options. Rules::getICANNDomain,Rules::getPrivateDomainwill throw even if aPublicSuffixis found but does not belong to the correct PSL section.Pdp\TopLevelDomains::resolveacts likePdp\Rules::resolveand only throw onTypeError
Deprecated
- None
Removed
__toStringand__debugInfousage- Support for PHP7.4-
- Composer script for automatic updates of the remote databases
- CLI command
bin/update-psl Pdp\Cache,Pdp\CacheException: The package PSR-16 Cache implementation using the underlying filesystem.Pdp\HttpClient,Pdp\CurlHttpClientandPdp\HttpClientException: The package Http Client.Pdp\Installer,Pdp\Manager: The package source manager and installerPdp\Logger, The package logger implementationPdp\Rules::ALL_DOMAINSconstant deprecated in version 5.3Pdp\Domain::getDomaindeprecated in version 5.3Pdp\Domain::resolvePdp\Domain::getPublicSuffixreplaced byPdp\ResolvedDomain::suffixPdp\Domain::getRegistrableDomainreplaced byPdp\ResolvedDomain::registrableDomainPdp\Domain::getSubDomainreplaced byPdp\ResolvedDomain::subDomainPdp\Domain::withPublicSuffixreplaced byPdp\ResolvedDomain::withSuffixPdp\Domain::getLabelreplaced byPdp\Domain::labelPdp\Domain::isTransitionalDifferentreplaced byPdp\IdnaInfo::isTransitionalDifferentPdp\PublicSuffixreplaced byPdp\Suffix- Accessing suffix information from the
Pdp\Domainobject is no longer possible you need to do it fromPdp\Suffix Pdp\TopLevelDomains::containswithout replacement- Internal Converter classes (implementation details are no longer exposed).
version 5.7.2
Added
- None
Fixed
- Added support for PHP8 see #289 based on works by @szepeviktor
Deprecated
- None
Removed
- None