Skip to content

AlexKratky/URL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

URL

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

Downloads this Month Repository size License Version

<?php
require 'vendor/autoload.php';
use AlexKratky\URL;

// e.g. visiting https://panx.eu/docs/v0.2.4/getting-started/
$url = new URL();
$url->getString();      //  /docs/v0.2.4/getting-started
$url->getElements();    //  [0] => '', [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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages