https://github.com/eufelipemateus/http_build_url
This is php fucntion generate urls with scheme.
https://github.com/eufelipemateus/http_build_url
php
Last synced: about 2 months ago
JSON representation
This is php fucntion generate urls with scheme.
- Host: GitHub
- URL: https://github.com/eufelipemateus/http_build_url
- Owner: eufelipemateus
- License: gpl-3.0
- Created: 2021-12-24T03:55:44.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-29T19:50:20.000Z (over 3 years ago)
- Last Synced: 2025-03-04T15:28:02.530Z (3 months ago)
- Topics: php
- Language: PHP
- Homepage: https://packagist.org/packages/felipemateus/http-build-url
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# This is a service plugin used to generate url
[](https://packagist.org/packages/felipemateus/http-build-url) [](https://packagist.org/packages/felipemateus/http-build-url) [](https://packagist.org/packages/felipemateus/http-build-url) [](https://packagist.org/packages/felipemateus/http-build-url) [](https://packagist.org/packages/felipemateus/http-build-url)
This package implements a function which allows you to create urls with user and password parameter from http.
## Instalation
```bash
composer require felipemateus/http-build-url
```## Example
```php
require_once __DIR__ . '/vendor/autoload.php';$url = http_build_url("http://example.com",
array(
"user" => "teste",
"pass" => "teste",
)
);print($url);
// https://teste:[email protected]```
### Url parts
scheme
user
pass
host
port
path
query
fragment