Releases: thephpleague/uri
Releases · thephpleague/uri
version 5.1.0
Added
- Support for PHP7.2
Fixed
- Update library dependencies
Deprecated
- Nothing
Remove
- Nothing
version 4.2.3
FINAL 4.x RELEASE
Added
- Nothing
Fixed
- issue #105 Adding support for PHP7.2
Deprecated
- Nothing
Remove
- Nothing
version 5.0.0
The library is now a PHP7+ metapackage. You can read
- the migration guide for upgrading
- the complete documentation for the each package version.
The metapackage is composed of the following League packages:
version 4.2.2
version 4.2.1
version 4.2.0
Added
Component::getContentreturns the raw encoded representation of a componentComponent::withContentto create a new instance from a given raw encoded contentgetDecodedmethod to access the decoded content for the following classes:UserPassFragment
- Support for PHP's magic methods
__debugInfoand__set_stateto improve debugging Modifiers\RelativizeModifiers\DecodeUnreservedCharactersPath::createFromSegmentsPath::getSegmentsHost::createFromLabelsHost::getLabelsQuery::createFromPairsQuery::getPairsModifiers\uri_referencefunction to return URI reference state.
Fixed
- Components encoding/decoding to be more RFC3986 compliant
Host::getRegisterableDomainmust always return a string as per the host interface expected return typeHost::getSubdomainmust always return a string as per the host interface expected return typeHost::isPublicSuffixValidwhen nopublicSuffixinformation is foundHost::isPublicSuffixValidmust always return a string as per the host interface expected return type- On instantiation, query and fragment delimiter are preserved
createFromComponentsfailing withparse_urlresult when no path is defined- On URI transformation
InvalidArgumentExceptionexceptions are emitted instead ofRuntimeExceptionones to normalize exception to PSR-7 Modifiers\Normalizeclass removes dot segments only on URI with absolute path.Modifiers\Normalizeclass decode all unreserved characters.FtpandWsobjects now accept relative reference URI without the scheme.
Deprecated
Component::modifyuseComponent::withContentinsteadHost::getLiteralPort::toIntusePort::getContentinsteadHierarchicalPath::createFromArrayuseHierarchicalPath::createFromSegmentsinsteadHierarchicalPath::toArrayuseHierarchicalPath::getSegmentsinsteadHost::createFromArrayuseHierarchicalPath::createFromLabelsinsteadHost::toArrayuseHost::getLabelsinsteadQuery::createFromArrayuseQuery::createFromPairsinsteadQuery::toArrayuseQuery::getPairsinsteadUriPart::sameValueAs
Remove
- Nothing
version 4.1.1
version 4.1.0
Added
Formatter::preserveQueryto improve query inclusion in URI string representationFormatter::preserveFragmentto improve fragment inclusion in URI string representationFormatter::__invokeas an alias ofFormatter::formatUriParser::__invokeas an alias ofUriParser::parse
Fixed
- Improve Uri Component modification issue #29
- Improve Path encoding/decoding issue #28
- Improve lowercase transformation in hostname issue #27
- Fix empty string evaluation issue #31
Deprecated
Formatter::getHostEncodingFormatter::getQueryEncodingFormatter::getQuerySeparatorModifiers\Filters\Flag::withFlagsModifiers\Filters\ForCallbable::withCallableModifiers\Filters\ForCallbable::withCallableModifiers\Filters\Keys::withKeysModifiers\Filters\Label::withLabelModifiers\Filters\Offset::withOffsetModifiers\Filters\QueryString::withQueryModifiers\Filters\Segment::withSegmentModifiers\Filters\Uri::withUriModifiers\DataUriParameters\withParametersModifiers\Extension\withExtensionModifiers\KsortQuery\withAlgorithmModifiers\Typecode\withType
Remove
- Nothing
version 4.0.1
Added
- Nothing
Fixed
UserandPassencodingHttp::createFromServerhandling userinfo when not usingmod_phpwith$_SERVER['HTTP_AUTHORIZATION']UriParserhandling URI strings with invalid schemeQueryParserhandling numeric index issue #25DataPathmimetype syntax validation issue #21DataPath::withParametersthe;base64binary code now always throw anInvalidArgumentException
Deprecated
- Nothing
Remove
- Nothing
Please refers to the documentation or the library CHANGELOG for more details and a complete list of changes
version 4.0.0
Added
Intlextension is now required to use the libraryFileInfoextension is now required to use the library- Domain parsing capabilities to
Hostusingjeremykendall/php-domain-parserpackage UriParserto parse an URI according to RFC3986 rulesQueryParserto parse and build a query string according to RFC3986 rules.League\Uri\Schemes\Generic\AbstractUrito enable better URI extension- URI Modifiers classes to modify URI objects in an uniform way for interoperability
- A
Dataclass to specifically manipulatedataschemed URI - A
Httpclass to specifically manipulatehttp,httpsschemed URI - A
Ftpclass to specifically manipulateftpschemed URI - A
Wsclass to specifically manipulatews,wssschemed URI - A
DataPathcomponent class to manipulate Data-uri path component - A
HierarchicalPathto manipulate Hierarchical-like path component - Support for IP host
Fixed
- Move namespace from
League\UrltoLeague\Urito avoid dependency hell - Uri components classes are fixed to comply to
RFC3986 - Uri components classes are now all immutable value objects
Deprecated
- Nothing
Remove
- Support for
PHP 5.4andPHP 5.3 - Dependency on PHP
parse_url,parse_strandhttp_build_queryfunctions - Dependency on the
True/php-punycodelibrary League\Url\Url,League\Url\UrlImmutable,League\Url\UrlConstantsclasses- Most of the public API is removed