echevarria/bitlyv4php

A simple PHP Library based on Guzzle to generate short links using Bit.ly API V4

Installs: 465

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 3

Open Issues: 0

pkg:composer/echevarria/bitlyv4php

dev-master 2019-06-21 22:14 UTC

This package is auto-updated.

Last update: 2025-09-22 12:19:12 UTC


README

Minimum PHP Version Latest Unstable Version License: MIT

A simple Bitly URL Shortener.

PHP Library based on Guzzle to generate short links using Bit.ly API V4

Installing

The recommended way to install this library is through Composer.

# Install Composer
curl -sS https://getcomposer.org/installer | php

Next, run the Composer command to install:

php composer.phar require echevarria/bitlyv4php:dev-master

After installing, you need to require Composer's autoloader:

require 'vendor/autoload.php';

Shortening a link

use Echevarria\Bitly\Bitly;

$token = 'yourBitlyToken';

$bitly = new Bitly($token);

$short = $bitly->shorten('https://long-url.com');