aklump/build-url

0.0.2 2024-06-25 00:37 UTC

This package is auto-updated.

Last update: 2024-12-25 01:51:34 UTC


README

build_url

Provides a function to create string versions of arrays containing URL components, such as returned by the native parse_url function.

Install with Composer

  1. 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