rkr/url

0.2.1 2022-07-22 13:36 UTC

This package is auto-updated.

Last update: 2024-10-22 18:25:46 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());