aklump / build-url
Installs: 117
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/aklump/build-url
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