php-extended/php-url-redirecter-generic

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

从通用网站检索隐藏链接的库


README

从任何简单重定向网站检索隐藏链接的库

coverage build status

安装

此库的安装通过composer完成。从他们的网站下载composer.phar。然后将其添加到您的composer.json文件中

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

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

支持的域名

https请求

  • app.link (branch.io)
  • bit.do
  • bit.ly
  • buff.ly
  • clk.im
  • geni.us
  • goo.gl
  • is.gd
  • ity.im
  • lmgtfy.com
  • ovh.to
  • po.st
  • psbe.co
  • rebrand.ly (rebrandly.click, rebrandly.xyz)
  • short.cm
  • smarturl.it
  • snip.ly
  • snipli.com
  • t.co
  • tiny.cc
  • tinyurl.com
  • tr.im
  • urlsgalore.com
  • v.gd
  • youtu.be

http请求

  • 9nl.at (clickmeter.com)
  • beam.to
  • bfy.tw
  • clkme.in
  • cutt.us
  • cur.lv
  • easyurl.net
  • georiot.co
  • goshrink.com
  • hyperurl.co
  • mcaf.ee
  • ow.ly
  • redirects.ca
  • shorl.com
  • slink.co
  • snip.li
  • tiny.pl
  • u.to
  • utm.io

基本用法

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


use PhpExtended\UrlRedirecter\GenericRedirecter;

$url = '<put your generic url here>';

$redirecter = new GenericRedirecter();

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

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

许可证

MIT (见许可证文件)。