rkr / url
Url builder
0.2.2.1
2024-11-15 19:24 UTC
Requires
- php: >= 5.6.0
Requires (Dev)
- phpstan/phpstan: >=1.0
- phpunit/phpunit: ^9.0
README
Url-manipulation component
$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());