ngophuongtuan / url_helper
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
Requires
- php: >=5.6
Requires (Dev)
- phpunit/phpunit: 6.4
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