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
Requires
- php: >=5.4.0
README
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