library zbz-uri
URI Manipulation
zobzn/zbz-uri
URI Manipulation
- Friday, January 8, 2016
- by zema
- Repository
- 1 Watchers
- 0 Stars
- 73 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 4 % Grown
zbz-uri
, (*1)
URI manipulation library, (*2)
Installation
``` bash
composer require zobzn/zbz-uri, (*3)
## Basic Usage
``` php
$uri = Zbz\Uri::get('http://examplex.org/index.php?key1=val1#title')
->withScheme('https')
->withAuthority('example.com')
->withPath('/index.htm')
->withQuery('key2=val2')
->withFragment('content');
var_export(array(
(string) $uri,
$uri->getScheme(),
$uri->getAuthority(),
$uri->getPath(),
$uri->getQuery(),
$uri->getFragment(),
));