https://github.com/keizerdev/phpuri
https://github.com/keizerdev/phpuri
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/keizerdev/phpuri
- Owner: KeizerDev
- Created: 2023-04-30T12:36:29.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-30T12:37:44.000Z (about 3 years ago)
- Last Synced: 2025-03-01T15:17:43.274Z (over 1 year ago)
- Language: PHP
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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
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
----
A mirror of the removed package:
- https://packagist.org/packages/pguardiario/phpuri
- https://github.com/monkeysuffrage/phpuri