Releases: jeremykendall/php-domain-parser
Releases · jeremykendall/php-domain-parser
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
RegisteredName
class to allow domain with IP4-like labels
Fixed
- Using PHPUnit 10
Domain
decorates the newRegisteredName
class #347Host::withoutLabel
works 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::getPrivateDomain
is 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::until
TimeToLive::fromDurationString
Fixed
.gitattributes
files to be filter out.TimeToLive
marked as internalHost::toUnicode
method MUST never throw exceptions on conversion according to RFC3490.UnableToResolveDomain
typo in the exception message
Deprecated
TimeToLive::fromDateTimeInterface
useTimeToLive::fromNow
TimeToLive::fromScalar
useTimeToLive::convert
Removed
- None
version 6.0.0
Added
- Adding proper Interfaces
- Added
Domain::clear
to easily initialize an empty domain object - Added
Domain::slice
to easily slice a domain object - Added
ResolvedDomain
object to normalize Resolver results. - Added
Suffix
object to replace thePublicSuffix
object from v5. - Public Suffix List and IANA Top Level Domain List are fully decoupled
- Added
Idna
, IDN support has been completely revamped - Added internal
Stream
class, 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::getIANADomain
which throws on syntax error and if no effective TLD is found (behave likePdp\TopLevelDomains::resolve
in v5).
Fixed
- The
Pdp\Domain
class not longer directly exposes Effective TLD status. - Effective TLD resolver (
Pdp\Rules::resolve
andPdp\TopLevelDomains::resolve
) no longer accept IDNA options. Rules::getICANNDomain
,Rules::getPrivateDomain
will throw even if aPublicSuffix
is found but does not belong to the correct PSL section.Pdp\TopLevelDomains::resolve
acts likePdp\Rules::resolve
and only throw onTypeError
Deprecated
- None
Removed
__toString
and__debugInfo
usage- 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\CurlHttpClient
andPdp\HttpClientException
: The package Http Client.Pdp\Installer
,Pdp\Manager
: The package source manager and installerPdp\Logger
, The package logger implementationPdp\Rules::ALL_DOMAINS
constant deprecated in version 5.3Pdp\Domain::getDomain
deprecated in version 5.3Pdp\Domain::resolve
Pdp\Domain::getPublicSuffix
replaced byPdp\ResolvedDomain::suffix
Pdp\Domain::getRegistrableDomain
replaced byPdp\ResolvedDomain::registrableDomain
Pdp\Domain::getSubDomain
replaced byPdp\ResolvedDomain::subDomain
Pdp\Domain::withPublicSuffix
replaced byPdp\ResolvedDomain::withSuffix
Pdp\Domain::getLabel
replaced byPdp\Domain::label
Pdp\Domain::isTransitionalDifferent
replaced byPdp\IdnaInfo::isTransitionalDifferent
Pdp\PublicSuffix
replaced byPdp\Suffix
- Accessing suffix information from the
Pdp\Domain
object is no longer possible you need to do it fromPdp\Suffix
Pdp\TopLevelDomains::contains
without 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
version 5.7.1
version 5.7.0
Added
Rules::getCookieDomain
Rules::getICANNDomain
Rules::getPrivateDomain
CouldNotResolvePublicSuffix::dueToUnresolvableDomain
Fixed
- Improve type hinting and return type by dropping EOL PHP versions support.
- Improve development environment by dropping EOL PHP versions support.
- Fix composer script
Deprecated
- None
Removed
- Support for PHP7.0 and PHP7.1
- The external data from IANA and mozilla is no longer part of the package and will be downloaded only on demand on composer update/install.