PHP Classes

guaranix URL: Compare URLs and compute relative URIs

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 311 All time: 7,316 This week: 673Up
Version License PHP version Categories
gurl 1.0Public Domain3HTTP
Description 

Author

This class can be used to compare URLs and compute relative URIs.

It determines if two URLs are from the same site. If so, it returns the URI of the second relative to the first. Otherwise it returns the second absolute URL.

Picture of Cesar D. Rodas
  Performance   Level  
Name: Cesar D. Rodas <contact>
Classes: 38 packages by
Country: Paraguay Paraguay
Innovation award
Innovation award
Nominee: 25x

Winner: 5x

  Files folder image Files (2)  
File Role Description
Plain text file gUrl.php Class The main class
Accessible without login Plain text file gUrl.test.php Example Example of how to use

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:311
This week:0
All time:7,316
This week:673Up