README

提供创建包含URL组件的数组的字符串版本的功能,例如由本机的 parse_url
函数返回的。
使用Composer安装
-
需要此包
composer require aklump/build-url:^0.0
用法
$components = [
'scheme' => 'https',
'host': 'foobar.com',
'path': '/index.html'
];
$url = build_url($components);
// 'https://foobar.com/index.html' === $url