| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
PHP class to filter URL duplicates, with integrated support for Yandex Clean-Param specifications.
What does it do?
It filters your URL lists so that any duplicate pages are removed.
What to expect if I'll filter my URLs?
What is Clean-Param?
It's a robots.txt directive witch describes dynamic parameters that do not affect the page content (e.g. identifiers of sessions, users, referrers etc.). When added, it has an significant impact on the number of URLs considered as duplicates. Learn more.
The library is available for install via Composer package. To install via Composer, please add the requirement to your composer.json file, like this:
{
"require": {
"VIPnytt/CleanParam-URL-Filter": "dev-master"
}
}and then use composer to load the lib:
<?php
require_once('vendor/autoload.php');
$filter = new \VIPnytt\CleanParamFilter($urls);You can find out more about Composer here: https://getcomposer.org/
$filter = new \vipnytt\CleanParamFilter($urlArray);
// Optional: Add Clean-Param
$filter->addCleanParam($parameter, $path);
// List duplicates
print_r($filter->listDuplicate());
// List non-duplicates
print_r($filter->listApproved());Pro tip: If you're going to filter tens of thousands of URLs, (or even more), it is recommended to break down the list to a bare minimum. This can be done by grouping the URLs by domain (or even host), and then filter each group individually. This is for the sake of performance!
Reason: You're probably trying to filter thousands of URLs.
Reason: You're probably trying to filter tens of thousands of URLs, maybe even more.
| Back | FazBrowse Home | New Git URL |