felipemateus/http-build-url

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

Installs: 482

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/felipemateus/http-build-url

0.0.1 2021-12-29 19:47 UTC

This package is auto-updated.

Last update: 2025-09-29 02:58:44 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