Value object representing a URL. Makes parsing, formatting and handing around URLs in a PHP app somewhat cleaner in some situations.
Couldn't think of a clever vendor name, so I used my own odd one.
Use composer to bring it into your project, then follow the usage examples.
It's intended to very simply wrap the components of a URL:
$string = 'http://example.com';
$object = Gwilym\Url::parse($string);
$string = Gwilym\Url::format($object);
Additionally:
$object = Gwilym\Url::parse('http://example.com');
echo $object->host; // example.com