PHP Classes

PHP URI: Convert relative to absolute URLs

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 51%Total: 387 All time: 6,672 This week: 673Up
Version License PHP version Categories
php-uri 1.1GNU General Publi...3.0HTTP
Description 

Author

This class can convert relative to absolute URLs.

It can take a given URL and parse it to determine if it is an absolute or a relative URL.

The class can rewrite relative URLs to make them an absolute considering another absolute URL.

Picture of P Guardiario
Name: P Guardiario <contact>
Classes: 6 packages by
Country: Philippines Philippines
Age: ???
All time rank: 162418 in Philippines Philippines
Week rank: 360 Up4 in Philippines Philippines Up

Details

Phpuri ========= A php library for converting relative urls to absolute. ```php require 'phpuri.php'; echo phpUri::parse('https://www.google.com/')->join('foo'); //==> https://www.google.com/foo ``` ### Benchmark <pre> php test.php rel2abs: successes -> 26, failures => 9, elapsed time: 0.001301 url_to_absolute: successes -> 32, failures => 3, elapsed time: 0.0029089999999999 phpuri: successes -> 35, failures => 0, elapsed time: 0.002402 </pre>

  Files folder image Files  
File Role Description
Plain text file phpuri.php Class Class source
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file test.php Example Sample output

 Version Control Unique User Downloads Download Rankings  
 100%
Total:387
This week:0
All time:6,672
This week:673Up
 User Ratings  
 
 All time
Utility:66%StarStarStarStar
Consistency:66%StarStarStarStar
Documentation:58%StarStarStar
Examples:58%StarStarStar
Tests:-
Videos:-
Overall:51%StarStarStar
Rank:2510