8000 GitHub - echevarria/bitlyv4PHP: Bitly URL Shortener. A simple PHP Library based on Guzzle to generate short links using Bit.ly API V4
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Notifications You must be signed in to change notification settings

echevarria/bitlyv4PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener - bit.ly v4 API - PHP

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');

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published
33C3

Packages

No packages published

Languages

0