2017 © Pedro Peláez
 

library bitly

PHP library to consume bit.ly API

image

gabrielkaputa/bitly

PHP library to consume bit.ly API

  • Tuesday, May 9, 2017
  • by gabriel.kaputa
  • Repository
  • 1 Watchers
  • 2 Stars
  • 12,709 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 9 % Grown

The README.md

bitly

Build Status Latest Stable Version, (*1)

PHP library to consume bit.ly API, (*2)

Installation

The recommended way to install this library is through Composer., (*3)

composer require gabrielkaputa/bitly

Usage

First of all, create a bit.ly account if you don't have one already., (*4)

If all you need to do is to create shortlinks on behalf of a single user or site, all you need is to get your generic access token. When done, you can create shortlinks like this:, (*5)

require_once("vendor/autoload.php");

$bitly = \GabrielKaputa\Bitly::withGenericAccessToken(GENERIC_ACCESS_TOKEN);
$short_url = $bitly->shortenUrl($long_url);

Another option is when you are working with multiple end-users or to pull any information on a user level for your own account. In this case you will need to register your application to get your CLIENT_ID and CLIENT_SECRET. When done, you can create shortlinks like this:, (*6)

require_once("vendor/autoload.php");

$bitly = \GabrielKaputa\Bitly::withCredentials(CLIENT_ID, CLIENT_SECRET, USERNAME, PASSWORD);
$short_url = $bitly->shortenUrl($long_url);

The Versions

09/05 2017

dev-master

9999999-dev

PHP library to consume bit.ly API

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

by Gabriel Kaputa

api php bitly gabriel kaputa

25/01 2017

1.0.2

1.0.2.0

PHP library to consume bit.ly API

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

by Gabriel Kaputa

api php bitly gabriel kaputa

25/01 2017

dev-develop

dev-develop

PHP library to consume bit.ly API

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

by Gabriel Kaputa

api php bitly gabriel kaputa

13/04 2016

1.0.1

1.0.1.0

PHP library to consume bit.ly API

  Sources   Download

The Requires

 

The Development Requires

by Gabriel Kaputa

api php bitly gabriel kaputa

13/04 2016

1.0.0

1.0.0.0

PHP library to consume bit.ly API

  Sources   Download

The Requires

 

The Development Requires

by Gabriel Kaputa

api php bitly gabriel kaputa

12/04 2016

0.1.0

0.1.0.0

PHP library to consume bit.ly API

  Sources   Download

The Requires

 

The Development Requires

by Gabriel Kaputa

api php bitly gabriel kaputa