Releases: thephpleague/uri
Releases · thephpleague/uri
version 4.2.0
Added
Component::getContent
returns the raw encoded representation of a componentComponent::withContent
to create a new instance from a given raw encoded contentgetDecoded
method to access the decoded content for the following classes:User
Pass
Fragment
- Support for PHP's magic methods
__debugInfo
and__set_state
to improve debugging Modifiers\Relativize
Modifiers\DecodeUnreservedCharacters
Path::createFromSegments
Path::getSegments
Host::createFromLabels
Host::getLabels
Query::createFromPairs
Query::getPairs
Modifiers\uri_reference
function to return URI reference state.
Fixed
- Components encoding/decoding to be more RFC3986 compliant
Host::getRegisterableDomain
must always return a string as per the host interface expected return typeHost::getSubdomain
must always return a string as per the host interface expected return typeHost::isPublicSuffixValid
when nopublicSuffix
information is foundHost::isPublicSuffixValid
must always return a string as per the host interface expected return type- On instantiation, query and fragment delimiter are preserved
createFromComponents
failing withparse_url
result when no path is defined- On URI transformation
InvalidArgumentException
exceptions are emitted instead ofRuntimeException
ones to normalize exception to PSR-7 Modifiers\Normalize
class removes dot segments only on URI with absolute path.Modifiers\Normalize
class decode all unreserved characters.Ftp
andWs
objects now accept relative reference URI without the scheme.
Deprecated
Component::modify
useComponent::withContent
insteadHost::getLiteral
Port::toInt
usePort::getContent
insteadHierarchicalPath::createFromArray
useHierarchicalPath::createFromSegments
insteadHierarchicalPath::toArray
useHierarchicalPath::getSegments
insteadHost::createFromArray
useHierarchicalPath::createFromLabels
insteadHost::toArray
useHost::getLabels
insteadQuery::createFromArray
useQuery::createFromPairs
insteadQuery::toArray
useQuery::getPairs
insteadUriPart::sameValueAs
Remove
- Nothing
version 4.1.1
version 4.1.0
Added
Formatter::preserveQuery
to improve query inclusion in URI string representationFormatter::preserveFragment
to improve fragment inclusion in URI string representationFormatter::__invoke
as an alias ofFormatter::format
UriParser::__invoke
as 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::getHostEncoding
Formatter::getQueryEncoding
Formatter::getQuerySeparator
Modifiers\Filters\Flag::withFlags
Modifiers\Filters\ForCallbable::withCallable
Modifiers\Filters\ForCallbable::withCallable
Modifiers\Filters\Keys::withKeys
Modifiers\Filters\Label::withLabel
Modifiers\Filters\Offset::withOffset
Modifiers\Filters\QueryString::withQuery
Modifiers\Filters\Segment::withSegment
Modifiers\Filters\Uri::withUri
Modifiers\DataUriParameters\withParameters
Modifiers\Extension\withExtension
Modifiers\KsortQuery\withAlgorithm
Modifiers\Typecode\withType
Remove
- Nothing
version 4.0.1
Added
- Nothing
Fixed
User
andPass
encodingHttp::createFromServer
handling userinfo when not usingmod_php
with$_SERVER['HTTP_AUTHORIZATION']
UriParser
handling URI strings with invalid schemeQueryParser
handling numeric index issue #25DataPath
mimetype syntax validation issue #21DataPath::withParameters
the;base64
binary 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
Intl
extension is now required to use the libraryFileInfo
extension is now required to use the library- Domain parsing capabilities to
Host
usingjeremykendall/php-domain-parser
package UriParser
to parse an URI according to RFC3986 rulesQueryParser
to parse and build a query string according to RFC3986 rules.League\Uri\Schemes\Generic\AbstractUri
to enable better URI extension- URI Modifiers classes to modify URI objects in an uniform way for interoperability
- A
Data
class to specifically manipulatedata
schemed URI - A
Http
class to specifically manipulatehttp
,https
schemed URI - A
Ftp
class to specifically manipulateftp
schemed URI - A
Ws
class to specifically manipulatews
,wss
schemed URI - A
DataPath
component class to manipulate Data-uri path component - A
HierarchicalPath
to manipulate Hierarchical-like path component - Support for IP host
Fixed
- Move namespace from
League\Url
toLeague\Uri
to 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.4
andPHP 5.3
- Dependency on PHP
parse_url
,parse_str
andhttp_build_query
functions - Dependency on the
True/php-punycode
library League\Url\Url
,League\Url\UrlImmutable
,League\Url\UrlConstants
classes- Most of the public API is removed