hcelebi/url-parser-tool

There is no license information available for the latest version (v1.0.2) of this package.

Url Parser Tool

v1.0.2 2015-10-16 06:31 UTC

This package is not auto-updated.

Last update: 2025-01-22 12:30:53 UTC


README

#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");