An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# Bitly PHP SDK by Codehaveli
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/codehaveli/bilty-php/PHP%20Composer?label=tests)](https://github.com/codehaveli/bilty-php/actions?query=workflow%3A%22PHP+Composer%22)
[![Latest Stable Version](https://poser.pugx.org/codehaveli/bitly-php/v)](//packagist.org/packages/codehaveli/bitly-php)
[![Latest Unstable Version](https://poser.pugx.org/codehaveli/bitly-php/v/unstable)](//packagist.org/packages/codehaveli/bitly-php)
[![Total Downloads](https://poser.pugx.org/codehaveli/bitly-php/downloads)](//packagist.org/packages/codehaveli/bitly-php)
[![Monthly Downloads](https://poser.pugx.org/codehaveli/bitly-php/d/monthly)](//packagist.org/packages/codehaveli/bitly-php)
[![License](https://poser.pugx.org/codehaveli/bitly-php/license)](//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/)