Skip to content

Innmind/Url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f96502d · Mar 20, 2025
Oct 19, 2024
Jul 8, 2023
Oct 26, 2024
Mar 20, 2025
Jan 5, 2020
Dec 11, 2019
Jan 15, 2022
Mar 20, 2025
Apr 16, 2016
Jan 31, 2021
Mar 20, 2025
Jul 8, 2023
Jul 8, 2023

Repository files navigation

Url

Build Status codecov Type Coverage

Url abstraction library

Installation

composer require innmind/url

Usage

use Innmind\Url\Url;

$url = Url::of('http://example.com:8080/some/dir/?limit=10');

$url->scheme(); // Scheme('http')
$url->authority()->userInformation()->user(); // User::none()
$url->authority()->userInformation()->password(); // Password::none()
$url->authority()->host(); // Host('example.com')
$url->authority()->port(); // Port(8080)
$url->path(); // Path('/some/dir/')
$url->query(); // Query('limit=10')
$url->fragment() // Fragment::none()