[READ-ONLY] League URI components objects
removeEmptyPairs
#133
League\Uri\Modifier::removeQueryPairsByKey
League\Uri\Modifier::removeQueryPairsByValue
League\Uri\Modifier::removeQueryPairsByKeyValue
League\Uri\Components\Query::hasPair
League\Uri\Components\Query::withoutPairByKey
League\Uri\Components\Query::withoutPairByValue
League\Uri\Components\Query::withoutPairByKeyValue
League\Uri\Components\Query::fromFormData
League\Uri\Components\Query::toFormData
League\Uri\Components\URLSearchParams
League\Uri\Components\Query::sort
to improve WHATWG compliance.League\Uri\QueryString::buildFromPairs
should throw SyntaxError
instead of TypeError
League\Uri\Components\Query
uses internally League\Uri\KeyValuePair\Converter
League\Uri\Components\Query::toRFC3986
is no longer deprecatedLeague\Uri\Components\Query::jsonSerualize
uses toFormData
instead of toRFC1738
League\Uri\Components\Query
fix float handling.League\Uri\Modifier::removeQueryPairs
use League\Uri\Modifier::removeQueryPairsByKey
instead.League\Uri\Components\Query::withoutPair
use League\Uri\Components\Query::withoutPairByKey
instead.Fix composer.json
Modifier::appendQueryPairs
Modifier::mergeQueryPairs
Modifier::removeQueryPairs
Modifier::removeEmptyQueryPairs
Modifier::appendQueryParameters
Modifier::mergeQueryParameters
Modifier::removeQueryParameters
Modifier::removeQueryParametersIndices
Modifier::removeParams
use Modifier::removeQueryParameters
insteadModifier::removePairs
use Modifier::removeQueryPairs
insteadModifier::removeEmptyPairs
use Modifier::removeEmptyQueryPairs
insteadModifier::encodeQuery
Encoder
class to normalize encoding and decoding in all packagesFull Changelog: https://github.com/thephpleague/uri-components/compare/7.0.0...7.1.0
Full Changelog: https://github.com/thephpleague/uri-components/compare/2.4.1...2.4.2
value
method to replace the removed getContent
method.League\Uri
package.League\Uri\Components\Scheme::new
named constructorLeague\Uri\Components\UserInfo::new
named constructorLeague\Uri\Components\Host::new
named constructorLeague\Uri\Components\Domain::new
named constructorLeague\Uri\Components\Fragment::new
named constructorLeague\Uri\Components\Query::new
named constructorLeague\Uri\Components\Path::new
named constructorLeague\Uri\Components\DataPath::new
named constructorLeague\Uri\Components\UserInfo::withUser
modifier methodLeague\Uri\Components\UserInfo::withPass
modifier methodLeague\Uri\Components\Port::fromNumber
modifier methodLeague\Uri\Components\Query::parameters
accessing methodLeague\Uri\Components\Query::parameter
accessing methodLeague\Uri\Components\Query::hasParameter
accessing methodLeague\Uri\IPv4Calculators\MissingIPv4Calculator
exceptionLeague\Uri\Components\OffsetOutOfBounds
exception addedLeague\Uri\Modifier
to replace deprecated League\Uri\Modifier
private readonly
where possible.UserInfo
and the Authority
classes) are made private use the available named constructors instead::new()
named constructor instead.UserInfo
class makes a distinction between null
and the empty string.Query::has
accessing method accept a variadic parameters to check multiple keys at the same time.Domain
value can be null
or a non-empty string previously it would trigger an exceptionDomain::append
and Domain::prepend
respects the root status of the instance.createFromString
named constructors are replaced by the new
named constructor.createFromNull
named constructors are replaced by the new
named constructor.createFrom*
replaced by the same method starting with from*
. For example Authority::createFromUri
is deprecated in favor of Authority::fromUri
Query::params
is replaced by Query::parameters
and Query::parameter
HierarchicalPath::segments
use HierarchicalPath::getIterator
insteadDomain::labels
use Domain::getIterator
insteadLeague\Uri\UriModifier
use League\Uri\Modifier
League\Uri\IPv4Normalizer
use League\Uri\Modifier
insteadwithContent
and getContent
methods__set_state
float
type as possible argument for componentsint
type as possible argument for componentsUserInfo::withUserInfo
modifier method use UserInfo::withUser
and/or UserInfo::withPass
insteadExceptions
namespaceLeague\Uri\Exceptions\IPv4CalculatorMissing
use League\Uri\IPv4Calculators\MissingIPv4Calculator
insteadLeague\Uri\Exceptions\OffsetOutOfBounds
use League\Uri\Components\OffsetOutOfBounds
insteadLeague\Uri\QueryString
class. Class moved to the uri-interfaces
package.Full Changelog: https://github.com/thephpleague/uri-components/compare/7.0.0-beta.2...7.0.0
Pre-release