PHP code example of kobas / bitly-api-php
1. Go to this page and download the library: Download kobas/bitly-api-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kobas / bitly-api-php example snippets
$bitly = new \Kobas\Bitly\Bitly('YOUR_ACCESS_TOKEN');
$url = $bitly->shortenUrl('https://google.com');
echo $url;
composer