leadthread / php-bitly
Easily shorten URLs in PHP
Installs: 16 665
Dependents: 2
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: ^5.5.9|^7.0
- guzzlehttp/guzzle: ^6.0
Requires (Dev)
- phpunit/phpunit: ^4.8|^5.0
README
Version 3 now uses OAuth2 as required by Bitly. Get your developer access token here
Installation
Install via composer - In the terminal:
composer require leadthread/php-bitly
Usage
use LeadThread\Bitly\Bitly; $c = new Bitly("access token"); $result = $c->shorten("https://www.google.com/"); var_dump($result); // string(21) "http://bit.ly/1SvUIo8"