Releases: thephpleague/uri-interfaces
Releases · thephpleague/uri-interfaces
version 7.7.0
Added
HostRecordclass to normalize parsing and caching Host resolutionHostTypeHost type enumeration list as defined by RFC3986HostFormatHost format enumaration list as defined by RFC3986/RFC3987
Fixed
UriString::buildAuthorityshould fail if an optional component is present when the host is missing.UriString::buildshould fail if an optional component is present when the host is missing.
Deprecated
UriString::isValidHostuseHostRecord::isValidmethod instead
Removed
- None
version 7.6.0
Added
UriComponentInterface::equalsContidionableinterfaceUriInterface::resolveUriInterface::relativizeUriInterface::equalsUriInterface::toNormalizedStringUriInterface::withUsernameUriInterface::withPasswordIPv6\Converter::isIpv6IPv6\Converter::normalizeUriString::resolveUriString::removeDotSegmentsUriString::normalizeUriString::normalizeAuthorityUriString::containsRfc3986CharsUriString::containsRfc3987CharsUriString::isValidSchemeUriString::isValidHostFeatureDetection::supportsDomEncoder::decodeNecessaryEncoder::decodePathEncoder::decodeQueryEncoder::decodeFragmentEncoder::isUserEncodedEncoder::isPasswordEncodedEncoder::isUserInfoEncodedEncoder::isPathEncodedEncoder::isQueryEncodedEncoder::isFragmentEncodedEncoder::normalizeUserEncoder::normalizePasswordEncoder::normalizeUserInfoEncoder::normalizePathEncoder::normalizeQueryEncoder::normalizeFragmentEncoder::normalizeHost
Fixed
UriString::parsewill fail if the URI contains whitespace.UriString::buildUriallows all arguments to benullincluding thepath.UriString::buildAuthorityallows the$userargument to benulland still generate a user info component.
Deprecated
Encoder::decodePartialreplaced byEncoder::decodeNecessary
Removed
- Dependency to
psr/http-factorypackage which is never required in the package.
version 7.5.0
Added
UriInterface::toComponentsreturns an associative array containing all URI components values.UriInterface::getUsernamereturns the encoded user component of the URI.UriInterface::getPasswordreturns the encoded scheme-specific information about how to gain authorization to access the resource.Uri\IPv6\Converterallows expanding and compressing IPv6.Uri\IPv4\Converter::toIPv6Using6to4allows converting an IPv4 into an IPv6 host using the 6to4 notation.Uri\IPv4\Converter::toIPv6UsingMappingallows mapping an IPv4 address into an IPv6 one.- Using PHP8.4
Deprecatedattribute to signal deprecated public API methods and constants.
Fixed
- Adding Host resolution caching to speed up URI parsing in
UriString Uri\UriString::parseAuthorityacceptsStringableobject as valid inputUri\IPv4\Converter::toDecimalalso handles 6to4 and IPv4 mapped address algorithm.Uri\QueryString::extractandQueryString::convertstop parsing too early issue #146
Deprecated
UriInterface::getComponentsuseUriInterface::toComponents
Removed
- None
7.4.1
version 7.3.0
Added
League\Uri\Contracts\QueryInterface::withoutPairByKeyLeague\Uri\Contracts\QueryInterface::withoutPairByValueLeague\Uri\Contracts\QueryInterface::withoutPairByKeyValueLeague\Uri\Contracts\QueryInterface::toFormDataLeague\Uri\Contracts\QueryInterface::withoutPairByKeyValueLeague\Uri\KeyValuePair\Converter::fromFormDataLeague\Uri\KeyValuePair\Converter::separatormethodLeague\Uri\KeyValuePair\Converter::encondingMapmethod
Fixed
League\Uri\KeyValuePair\Converterfix encoding when the value is a float or the booleanfalse- Exception message typo fix #121 by GrahamCampbell
Deprecated
Contracts\QueryInterface\QueryInterface::withoutPairuseContracts\QueryInterface\QueryInterface::withoutPairByKeyinstead.
Removed
- None
version 7.2.0
Added
League\Uri\Idna\Converter::isIdnLeague\Uri\Ipv4\Converter::isIpv4
Fixed
- Add support for
Stringablehost object inLeague\Uri\Idna\Converterfeature. - Add support for
Stringablehost object inLeague\Uri\Exceptions\ConversionFailedfeature.
Deprecated
- None
Removed
- None
version 7.1.0
Added
League\Uri\Encoderto normalize encoding URI and URI components.League\Uri\KeyValuePair\Converterto parse and build key/value pair string.
Fixed
- Rewrite
QueryStringclasses and fix query encoding for basic RFC3986. #109
Deprecated
- None
Removed
- None
Full Changelog: 7.0.0...7.1.0
version 7.0.0
Added
- New method to
UriComponentInterface::value - New method to
UriComponentInterface::toString - New method to
UserInfoInterface::withUser - New method to
UserInfoInterface::withPass - New method to
UriInterface::toString - New method to
UriInterface::toComponents League\Uri\IPv4toolsLeague\Uri\IdnatoolsLeague\Uri\UriStringparserLeague\Uri\QueryStringparser
Fixed
- None
Deprecated
- None
Removed
- Support for PHP7
- Support for
__set_state UriComponentInterface::getContentis removed in favor ofUriComponentInterface::valueUriComponentInterface::withContentis removed with no replacement use other means to change the value of the component.UserInfoInterface::withUserInfois removed in favor ofUserInfoInterface::withUserandUserInfoInterface::withPass.HostInfoInterface::labelsis removed with no replacement use theIteratorAggregate::getIteratormethod instead.SegmentedPathInterface::segmentsis removed with no replacement use theIteratorAggregate::getIteratormethod instead.League\Uri\Idna\IdnauseLeague\Uri\Idna\ConverterinsteadLeague\Uri\Idna\IdnaInfouseLeague\Uri\Idna\ResultinsteadLeague\Uri\Exception\IdnSupportMissinguseLeague\Uri\Exception\MissingFeatureinstead
Full Changelog: 1.1.1...7.0.0
version 7.0.0-beta.1
pre-release for the next major version
7.0.0-beta.2
pre-release