Install the package through Composer.
composer require darshphpdev/bitly-shortner
Optional configuration file (useful if you plan to have full control)
php artisan vendor:publish --tag="bitlyconfig"
// In your controller
// Use The Helper class Bitly to shorten urls
use Bitly;
return Bitly::shorten('https://www.youtube.com');
The Http Client Package is open-sourced software licensed under the MIT license