Recommend this page to a friend! |
Download .zip |
Info | View files (3) | Download .zip | Reputation | Support forum (1) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2014-10-15 (2 years ago) | Not enough user ratings | Total: 370 | All time: 6,446 This week: 936 |
Version | License | PHP version | Categories | |||
php-uri 1.1 | GNU General Publi... | 3.0 | HTTP |
Description | Author | |||||||||||||
This class can convert relative to absolute URLs. |
|
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 |
File | Role | Description |
---|---|---|
phpuri.php | Class | Class source |
README.md | Doc. | Documentation |
test.php | Example | Sample output |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Related pages |
Convert relative urls to absolute in php with Phpuri Blog post describing usage |