1. Go to this page and download the library: Download zyan/url-info 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/ */
zyan / url-info example snippets
use Zyan\UrlInfo\UrlInfo;
$urlInfo = new UrlInfo('http://www.baidu.com/abc/123/test.php?a=2');