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