https://github.com/codehaveli/bitly-php
Bitly PHP SDK by Codehaveli uses the functionality of Bitly API version 4. This package is in initial release and have very less feature compared to main Bitly API.
https://github.com/codehaveli/bitly-php
api api-client api-rest bitlinks bitly bitly-api bitly-php-sdk bitly-v4 composer link-shortener php php-bitly urlshortener
Last synced: about 1 month ago
JSON representation
Bitly PHP SDK by Codehaveli uses the functionality of Bitly API version 4. This package is in initial release and have very less feature compared to main Bitly API.
- Host: GitHub
- URL: https://github.com/codehaveli/bitly-php
- Owner: codehaveli
- License: mit
- Created: 2020-09-03T06:49:54.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-20T11:45:23.000Z (over 5 years ago)
- Last Synced: 2025-07-08T10:12:22.642Z (12 months ago)
- Topics: api, api-client, api-rest, bitlinks, bitly, bitly-api, bitly-php-sdk, bitly-v4, composer, link-shortener, php, php-bitly, urlshortener
- Language: PHP
- Homepage: https://packagist.org/packages/codehaveli/bitly-php
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bitly PHP SDK by Codehaveli
[](https://github.com/codehaveli/bilty-php/actions?query=workflow%3A%22PHP+Composer%22)
[](//packagist.org/packages/codehaveli/bitly-php)
[](//packagist.org/packages/codehaveli/bitly-php)
[](//packagist.org/packages/codehaveli/bitly-php)
[](//packagist.org/packages/codehaveli/bitly-php)
[](//packagist.org/packages/codehaveli/bitly-php)
* [Description](#description)
* [Installation](#installation)
* [Usage](#usage)
* [Link](#link)
* [Terms of Use](#terms-of-use)
* [Other Resource](#other-resource)
### Description
A PHP wrapper for the bit.ly API. This package use Bitly API version v4.
### Installation
Install via composer
`composer require codehaveli/bitly-php:dev-master --prefer-source`
### Usage
```php
getUrl("https://www.codehaveli.com/"); // https://bit.ly/3lF0yKR
} catch (BitlyErrorException $e) {
$code = $e->getCode();
$message = $e->getMessage();
}
```
### Terms of Use
This is not a Official SDK of Bitly
Please read [privacy](https://bitly.com/pages/privacy) and [terms of service](https://bitly.com/pages/terms-of-service) of [Bitly](https://bitly.com/) before use.
### Other Resource
1. Wordpress Plugin by Codehaveli [Codehaveli Bitly URL Shortener](https://bit.ly/codehaveli-bitly-url-shortener)
2. [Bitly API Documentation](https://dev.bitly.com/)
3. [Codehaveli Blog](https://www.codehaveli.com/blogs/)