PHP code example of djthossi / url-parser
1. Go to this page and download the library: Download djthossi/url-parser 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/ */
djthossi / url-parser example snippets
use DjThossi\UrlParser\ParsedUrl;
use DjThossi\UrlParser\UrlParser;
class SomeClass
{
public function parseUrl(string $url): ParsedUrl
{
$urlParser = new UrlParser();
return $urlParser->parseUrl($url);
}
}