Metapackage that lists all the packages for url redirecters
Metapackage that lists all the packages for url redirecters
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-suite": "^1"
...
}
Then run php composer.phar update
to install this library.
The autoloading of all classes of this library is made through composer's autoloader.
If a redirecter is not in the list and you want to use it, please open an issue for it to be implemented.
You may use this library the following way:
use PhpExtended\UrlRedirecter\UniversalRedirecter;
$url = '<put your link here>';
$redirecter = new UniversalRedirecter();
$res = $redirecter->getRedirections($url);
// $res is now an array with one or many result: the redirection(s) url(s)
MIT (See license file).