Class to easy work with URI, getting its part etc.

v0.2.0 2019-09-13 15:15 UTC

This package is auto-updated.

Last update: 2020-02-13 17:01:24 UTC


README

PHP Class to easy work with URI, getting its part etc.

Downloads this Month Repository size License Version

<?php
// e.g. visiting https://panx.eu/docs/v0.2.4/getting-started/
$url = new URL();
$url->getString(); //  /docs/v0.2.4/getting-started
$url->getLink(); //  [1] => docs, [2] => v0.2.4, [3] => getting-started
$url->getCount(); //  3
foreach($url->getLink() as $v) {
    echo $v . "\n";
}
/*
Prints:

docs
v0.2.4
getting-started
*/