aklump/build-url

0.0.2 2024-06-25 00:37 UTC

This package is auto-updated.

Last update: 2024-09-25 01:24:23 UTC


README

build_url

提供创建包含URL组件的数组的字符串版本的功能,例如由本机的 parse_url 函数返回的。

使用Composer安装

  1. 需要此包

    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