exfriend/uncurl is a Laravel package for unfurl links in php.
It currently has 1 GitHub stars and 199 downloads on Packagist (latest version 1.0.5).
Install it with composer require exfriend/uncurl.
Discover more Laravel packages by exfriend
or browse all Laravel packages to compare alternatives.
Last updated
This package unwraps urls like t.co or bit.ly to actual destination urls by doing an HTTP request and remembering the redirect chain.
You can install the package via composer:
composer require exfriend/uncurl
Get the whole chain:
unfurl('http://google.com')->all();
// returns [ 'https://google.com', 'https://www.google.com' ];
Get the final destination:
unfurl('http://google.com')->last();
// returns 'https://www.google.com';
(string) unfurl('http://google.com')
// same as above
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.