Small and simple url parser library.
You need:
- PHP >= 7.4 but the latest stable version of PHP is recommended
$ composer require selby/urlparser
use \Selby\UrlParser;
$url = new UrlParser('http://example.com');
echo $url->host();
The MIT License (MIT). Please see License File for more information.