1. Go to this page and download the library: Download riimu/kit-urlparser library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
riimu / kit-urlparser example snippets
er = new \Riimu\Kit\UrlParser\UriParser();
$uri = $parser->parse('http://www.example.com');
echo $uri->getHost(); // Outputs 'www.example.com'
new \Riimu\Kit\UrlParser\Uri('http://www.example.com');
echo $uri->getHost(); // Outputs 'www.example.com'