xsirix/phpuri

There is no license information available for the latest version (1.0.1) of this package.

A php library for converting relative urls to absolute.

Maintainers

Details

github.com/XSIRIX/phpuri

Source

Issues

Installs: 227

Dependents: 2

Suggesters: 0

Security: 0

Stars: 4

Watchers: 1

Forks: 5

Open Issues: 0

Type:project

1.0.1 2023-02-07 15:44 UTC

This package is auto-updated.

Last update: 2024-11-07 20:14:38 UTC


README

A fork of the phpuri package. Other distros for some reason have been deleted, hence this alternative fork.

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