Skip to content
Class to easy work with URI, getting its part etc.
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
LICENSE
README.md
composer.json

README.md

URL

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
*/
You can’t perform that action at this time.