Repository navigation
Releases
Releases · thephpleague/uri-interfaces
version 7.10.0
version 7.9.1
Added
- None
Fixed
- Reject URI ports that overflow PHP_INT_MAX instead of clamping them #227 by wleeaf
Encoder::normalizeHostLowercase percent-decoded letters when normalizing the host #227 by wleeaf- Drop the base URI fragment when resolving an empty reference #226 by wleeaf
- Fix data URI with only ;base64 parameter being rejected #225 by ViniTou
Deprecated
- None
Removed
- None
version 7.9.0
Added
HostRecord::parsereturns a newHostRecordornullcomplementsHostRecord::from
Fixed
EncoderURI component encoding #191- Preserve the root when removeDotSegments pops past it (RFC 3986 §5.2.4) #190
UriStringURI normalization algorithm to be inline with PHP's Uri extension
Deprecated
- None
Removed
- None
Full Changelog: 7.8.1...7.9.0
version 7.8.1
Added
- None
Fixed
Host::isIpis fixed to be more strict.UriString::resolveregression from previous minor version fixed see issue #184
Deprecated
- None
Removed
- None
version 7.8.0
Added
QueryString::composeandQueryString::composeFromValuea userland improvedhttp_build_querymethod.QueryExtractModeandQueryComposeModeEnum to improve query parsing and building.StringCoercionModeto normalize type coercion- Added support for
BackedEnum FragmentDirective::toFragmentValueDomainHostInteraface::isSubdomainOfDomainHostInteraface::hasSubdomainDomainHostInteraface::isSiblingOfDomainHostInteraface::parentHostDomainHostInteraface::commonAncestorWith- Added the
Transformableinterface
Fixed
- Fix issue #177 improved userInfo encoding.
- Fix
UriString::resolvemethod. - Fix Type coercion when using the QueryString
Deprecated
- None
Removed
- None
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