felipemateus/http-build-url

This package implements a function which allows you to create urls with user and password parameter from http.

0.0.1 2021-12-29 19:47 UTC

This package is auto-updated.

Last update: 2024-04-29 04:41:10 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

This package implements a function which allows you to create urls with user and password parameter from http.

Instalation

composer require felipemateus/http-build-url

Example

require_once __DIR__ . '/vendor/autoload.php'; 

$url = http_build_url("http://example.com",
            array(
                "user" => "teste",
                "pass" => "teste",
            )
        );

print($url);
// https://teste:teste@example.com

Url parts

scheme user pass host port path query fragment