php-extended/php-url-redirecter-ushortlinks-com

Library to retrieve hidden links from ushort-links.com website


Keywords
php, url, redirecter, ushort-links.com
License
MIT

Documentation

php-url-redirecter-ushortlinks-com

Library to retrieve hidden links from ushort-links.com website

Installation

The installation of this library is made via composer. Download composer.phar from their website. Then add to your composer.json :

	"require": {
		...
		"php-extended/php-url-redirecter-ushortlinks-com": "^2"
		...
	}

Then run php composer.phar update to install this library. The autoloading of all classes of this library is made through composer's autoloader.

Basic Usage

You may use this library the following way:


use PhpExtended\UrlRedirecter\UshortlinksComRedirecter;

$url = '<put your ushort-links.com url here>';

$redirecter = new UshortlinksComRedirecter();

$res = $redirecter->getRedirections($url);

// $res is now an array with one or many results: the redirection url

License

MIT (See license file).