rkr/url

0.2.2.1 2024-11-15 19:24 UTC

This package is auto-updated.

Last update: 2024-11-15 19:25:01 UTC


README

Url-manipulation component

Build Status

$url = new Url('/subpath?a=1', 'http://example.org/#test');
echo (string) $url; // http://example.org/subpath?a=1#test

var_dump($url->getScheme());
var_dump($url->getUsername());
var_dump($url->getPassword());
var_dump($url->getHost());
var_dump($url->getPort());
var_dump($url->getPath());
var_dump($url->getQuery());
var_dump($url->getFragment());