php-extended/php-url-redirecter-atu-ca

该包已被弃用且不再维护。作者建议使用 php-extended/php-url-redirecter-object 包。

从 atu.ca 网站检索隐藏链接的库

3.1.14 2021-06-25 19:32 UTC

This package is auto-updated.

Last update: 2021-06-27 16:09:41 UTC


README

从 atu.ca 网站检索隐藏链接的库

coverage build status

安装

通过 composer 安装此库。从 官方网站 下载 composer.phar。然后在你的 composer.json 中添加以下内容

	"require": {
		...
		"php-extended/php-url-redirecter-atu-ca": "^3"
		...
	}

然后运行 php composer.phar update 以安装此库。该库所有类的自动加载都通过 composer 的自动加载器完成。

基本用法

你可以使用此库的以下方式


use PhpExtended\UrlRedirecter\AtuCaRedirecter;

$url = '<put your atu.ca url here>';

$redirecter = new AtuCaRedirecter();

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

// $res is now an array with one result: the redirection url

许可证

MIT (见 许可证文件).