2017 © Pedro Peláez
 

library bitlys

Libraries to create Short URL with Bitly API

image

arisharyanto/bitlys

Libraries to create Short URL with Bitly API

  • Tuesday, February 20, 2018
  • by Aris-haryanto
  • Repository
  • 1 Watchers
  • 1 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 38 % Grown

The README.md

Bitlys Laravel

Create Shorten URL with Bitly API in Laravel, (*1)

How to install

  • Run in your terminal:
$ cd yourprojectdirectory
$ composer require arisharyanto/bitlys
  • Add the service providers in config/app.php:
Arisharyanto\Bitlys\BitlysServiceProvider::class,
  • Run this command in the terminal
$ php artisan vendor:publish --provider="Arisharyanto\Bitlys\BitlysServiceProvider"  
  • Add access_token from your bitly apps in config/bitlys.php:
'access_token' => 'your access token',

How to use

Just add use Arisharyanto\Bitlys\Bitlys, (*2)

Bitlys::shorten($longUrl);  # Create short bitly url
Bitlys::expand($shortUrl);  # Convert shortUrl to longUrl
Bitlys::clicks($shortUrl);  # Returns the number of clicks on a single Bitlink
Bitlys::countries($shortUrl);  # Returns metrics about the countries referring click traffic to a single Bitlink

Simple !, (*3)

Who is using Bitlys

License

See the license https://github.com/Aris-haryanto/Bitlys-Laravel/blob/master/LICENSE, (*4)

Author

Aris Haryanto visit my website https://arindasoft.wordpress.com/, (*5)

The Versions

20/02 2018

dev-master

9999999-dev https://github.com/Aris-haryanto/Bitlys-Laravel

Libraries to create Short URL with Bitly API

  Sources   Download

MIT

The Requires

  • php ~5.5|~7.0

 

bitly shorten short bitlys

18/10 2017

1.0.0

1.0.0.0 https://github.com/Aris-haryanto/Bitlys-Laravel

Libraries to create Short URL with Bitly API

  Sources   Download

MIT

The Requires

  • php ~5.5|~7.0

 

bitly shorten short bitlys