PHP code example of ndrd / lumen-bitly

1. Go to this page and download the library: Download ndrd/lumen-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/ */

    

ndrd / lumen-bitly example snippets

 php
Shivella\Bitly\BitlyServiceProvider::class,

php artisan vendor:publish --provider="Shivella\Bitly\BitlyServiceProvider"
 php
$url = app('bitly')->getUrl('https://www.google.com/'); // http://bit.ly/nHcn3
 php
$url = Bitly::getUrl('https://www.google.com/'); // http://bit.ly/nHcn3