ngophuongtuan/url_helper

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

url helper php

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

This package is auto-updated.

Last update: 2025-06-09 21:37:54 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