aklump / build-url
0.0.2
2024-06-25 00:37 UTC
Requires (Dev)
- phpunit/phpunit: ^9.6
README
Provides a function to create string versions of arrays containing URL components, such as returned by the native parse_url
function.
Install with Composer
-
Require this package:
composer require aklump/build-url:^0.0
Usage
$components = [ 'scheme' => 'https', 'host': 'foobar.com', 'path': '/index.html' ]; $url = build_url($components); // 'https://foobar.com/index.html' === $url