Download the PHP package fyre/uri without Composer
On this page you can find all versions of the php package fyre/uri. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package uri
FyreURI
FyreURI is a free, open-source immutable URI library for PHP.
Table Of Contents
- Installation
- Basic Usage
- Methods
Installation
Using Composer
In PHP:
Basic Usage
$uriString
is a string representing the uri.
Alternatively, you can use the fromString
method for easier chaining.
Methods
Add Query
Add a query parameter.
$key
is a string representing the query key.$value
is the query value.
Except Query
Remove query parameters.
$keys
is an array containing the query parameters to remove.
Get Authority
Get the URI authority string.
Get Fragment
Get the URI fragment.
Get Host
Get the URI host.
Get Path
Get the URI path.
Get Port
Get the URI port.
Get Query
Get the URI query array.
Get Query String
Get the URI query string.
Get Scheme
Get the URI scheme.
Get Segment
Get a specified URI segment.
$segment
is a number indicating the segment index.
Get Segments
Get the URI segments.
Get Total Segments
Get the URI segments count.
Get Uri
Get the URI string.
Get User Info
Get the user info string.
Only Query
Filter query parameters.
$keys
is an array containing the query parameters to keep.
Set Authority
Set the URI authority string.
$authority
is a string representing the authority.
Set Fragment
Set the URI fragment.
$fragment
is a string representing the fragment.
Set Host
Set the URI host.
$host
is a string representing the host.
Set Path
Set the URI path.
$path
is a string representing the path.
Set Port
Get the URI port.
$port
is a number representing the port.
Set Query
Get the URI query array.
$query
is an array containing the query parameters.
Set Query String
Get the URI query string.
$query
is a string representing the query parameters.
Set Scheme
Get the URI scheme.
$scheme
is a string representing the scheme.
Set User Info
Get the user info string.
$username
is a string representing the username.$password
is a string representing the password, and will default to "".