pguardiario / phpuri
A php library for converting relative urls to absolute.
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 422 258
Dependents: 4
Suggesters: 0
Security: 0
Stars: 60
Watchers: 5
Forks: 22
Open Issues: 9
Type:project
This package is not auto-updated.
Last update: 2023-01-31 08:36:08 UTC
README
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