Skip to content

martinmdev/php-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Url

codecov Build Status Latest Stable Version Total Downloads Latest Unstable Version License

Usage

<?php

require __DIR__ . '/../vendor/autoload.php';

use Martinm\Url\Url;

$url = new Url('http://example.com/path/to/index.php?x=1&y=2');

$url->getScheme(); // 'http'
$url->getHost(); // 'example.com'
$url->getPort(); // null
$url->getPath(); // '/path/to/index.php'
$url->getQuery(); // 'x=1&y=2'

Installation

composer require martinmdev/php-url

About

A PHP Url class

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages