exfriend / uncurl
在PHP中展开链接
1.0.5
2019-04-14 18:44 UTC
Requires
- php: ^7.1
Requires (Dev)
- larapack/dd: ^1.0
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2024-09-15 07:20:43 UTC
README
此软件包通过发送HTTP请求并记住重定向链,将类似于t.co或bit.ly的URL展开为实际的目标URL。
安装
您可以通过composer安装此软件包
composer require exfriend/uncurl
用法
获取整个链
unfurl('http://google.com')->all(); // returns [ 'https://google.com', 'https://www.google.com' ];
获取最终目的地
unfurl('http://google.com')->last(); // returns 'https://www.google.com'; (string) unfurl('http://google.com') // same as above
变更日志
有关最近更改的更多信息,请参阅变更日志。
贡献
有关详细信息,请参阅贡献指南。
安全
如果您发现任何与安全相关的问题,请通过电子邮件vlad@serpentine.io联系,而不是使用问题跟踪器。
鸣谢
许可
MIT许可(MIT)。有关更多信息,请参阅许可文件。