1. Go to this page and download the library: Download edulazaro/urlnormalizer 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/ */
edulazaro / urlnormalizer example snippets
composer
use Edulazaro\URLNormalizer\URLNormalizer;
$normalizer = new URLNormalizer();
$normalizedURL = $normalizer->normalize('http://edulazaro.com?a=1&b=2');
use Edulazaro\URLNormalizer\URLNormalizer;
$normalizer = new URLNormalizer();
$topDomain = $normalizer->getURLTopLevelDomain('http://test.edulazaro.com?a=1&b=2');
use Edulazaro\URLNormalizer\URLCounter;
$normalizer = new URLCounter();
$normalizedURLs = $normalizer->countUniqueUrls([
'http://edulazaro.com?a=1&b=2',
'http://edulazaro.com?a=2&b=1'
]);
use Edulazaro\URLNormalizer\URLCounter;
$normalizer = new URLCounter();
$normalizedURLsPerDomain = $normalizer->countUniqueUrlsPerTopLevelDomain([
'http://test.edulazaro.com?a=1&b=2',
'http://edulazaro.com?a=2&b=1',
'http://neoguias.com'
]);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.