Login   Register  
PHP Classes

File: README.md

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of P Guardiario  >  PHP URI  >  README.md  >  Download  
File: README.md
Role: Documentation
Content type: text/plain
Description: Documentation
Class: PHP URI
Convert relative to absolute URLs
Author: By
Last change:
Date: 1 year ago
Size: 467 bytes


Class file image Download

A php library for converting relative urls to absolute.

require 'phpuri.php';
echo phpUri::parse('https://www.google.com/')->join('foo');
//==> https://www.google.com/foo

### Benchmark
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