kobas / bitly-api-php
PHP library to get a short url via a generic access token from bit.ly
1.2
2022-12-09 16:32 UTC
Requires
- ext-json: *
- guzzlehttp/guzzle: ^7.5
Requires (Dev)
- phpunit/phpunit: ~5.7.27
This package is auto-updated.
Last update: 2024-11-09 20:34:06 UTC
README
This package:
- Provides an easy way to get bit.ly to shorten a URL using their v4 API.
- Only supports using Bit.ly Generic Access Tokens.
Installation
To install, use composer:
composer require kobas/bitly-api-php
Usage
$bitly = new \Kobas\Bitly\Bitly('YOUR_ACCESS_TOKEN'); $url = $bitly->shortenUrl('https://google.com'); echo $url;
Licensing
The MIT License (MIT). Please see License File for more information.