Login   Register  
PHP Classes
elePHPant
Icontem

PHP URL Compare: Compare two URLs and show the differences

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Yasir Siddiqui
Name: Yasir Siddiqui is available for providing paid consulting. Contact Yasir Siddiqui .
Classes: 13 packages by
Country: Pakistan Pakistan
Age: 30
All time rank: 5807 in Pakistan Pakistan
Week rank: 58 Up1 in Pakistan Pakistan Up
Innovation award
Innovation award
Nominee: 7x

Winner: 1x


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This class can compare two URLs and show the differences.

It can parse two given URLs and compare them to see if they are different.

The class ignores the order of query parameters so it can determine if the URLs are the same even if the order of the parameters is different.

It returns a string with the details of which parts of the URLs may be different.

  Classes of Yasir Siddiqui  >  PHP URL Compare  >  Download Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHP URL Compare
Base name: url-compare
Description: Compare two URLs and show the differences
Version: 1.0
PHP version: 5.3
License: BSD License
All time users: 332 users
All time rank: 6302
Week users: 0 users
Week rank: 1569 Equal
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Text processing Manipulating and validating text data View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
October 2013
Number 5


Prize: One copy of the Zend Studio
Sometimes it is necessary to compare two URLs to determine if they represent the same page.

Comparing the URLs character by character may not be enough to determine if the URLs are different because they may represent the same URL with query parameters order switched.

This class can address that situation by parsing the URLs and comparing the query parameters one by one regardless of their order in the URLs.

Manuel Lemos

  User ratings  
Not enough user ratings

  Applications that use this package  
No pages of applications that use this class were specified.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example script
Accessible without login Plain text file README.md Doc. Documentation
Plain text file UrlDiffer.php Class Class source

Install with Composer Install with Composer - Download Download all files: url-compare.tar.gz url-compare.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.