Version: v0.8.1 - Beta.  We welcome contributors & feedback.

Url.getQuery

getQuery() -> UrlQuery

Description

Get a UrlQuery object that contains the query params of the URL.

$postsUrl = url'/posts/all?sortBy=date&order=desc'

$query = $postsUrl.getQuery()

$query.get('sortBy') //= 'date'
$query.get('order')  //= 'desc'

See Also