Skip to content

zobzn/zbz-uri

Repository files navigation

zbz-uri

Build Status Software License

URI manipulation library

Installation

composer require zobzn/zbz-uri

Basic Usage

$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(),
));

About

URI manipulation library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages