ngophuongtuan/url_helper

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

url helper php

Installs: 13

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/ngophuongtuan/url_helper

v1.0.2 2017-11-06 17:12 UTC

This package is auto-updated.

Last update: 2025-10-09 22:20:03 UTC


README

$ composer require ngophuongtuan/url_helper

Usage

Use namespace Acme\urlHelper to include urlHelper class.

use Acme\urlHelper;

$url= new urlHelper();

Check valid url.

$url->check($url);   				//return true if the $url is valid

Connect a url and a path

$url->connect("$url", "$path");		//connect the $url with $path to a new string url

Get info of an url.

$info = $url->getInfo("$url");				

$protocol = $info['protocol'];		//get the protocol
$port = $info['port'];				//get the port
$domain = $info['domain'];			//get the domain