This package:
- Provides an easy way to get bit.ly to shorten a URL using their v4 API.
- Only supports using Bit.ly Generic Access Tokens.
To install, use composer:
composer require kobas/bitly-api-php
$bitly = new \Kobas\Bitly\Bitly('YOUR_ACCESS_TOKEN');
$url = $bitly->shortenUrl('https://google.com');
echo $url;
The MIT License (MIT). Please see License File for more information.