LaravelPackages.net
Acme Inc.
Toggle sidebar
exfriend/uncurl

Unfurl links in PHP

199
1
1.0.5
About exfriend/uncurl

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

Unfurl links in PHP

This package unwraps urls like t.co or bit.ly to actual destination urls by doing an HTTP request and remembering the redirect chain.

Installation

You can install the package via composer:

composer require exfriend/uncurl

Usage

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

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Star History Chart