Skip to content

hcelebi/url-parser-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#URL Parser Tool

###Example Usage

$url = "http://www.xxx.com/search/?k=word";
$urlType = new Url($url);

//Get query params as array
$query = $urlType->getQuery()->toArray();

//Get uri path
$path = $urlType->getPath();

//Update query param
$urlType->getQuery()->set("k" => "wordxx");