Library to retrieve hidden links from ushort-links.com website
Library to retrieve hidden links from ushort-links.com website
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.
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
MIT (See license file).