PHP code example of elmsellem / laravel-bitly
1. Go to this page and download the library: Download elmsellem/laravel-bitly 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/ */
elmsellem / laravel-bitly example snippets
$url = app('bitly')->getShortenUrl('https://www.google.com/'); // https://bit.ly/3uOZj27
use Bitly;
$url = Bitly::getShortenUrl('https://www.google.com/'); // https://bit.ly/3uOZj27
php artisan vendor:publish --provider="Elmsellem\Bitly\BitlyServiceProvider"