appventus/avbitly-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Symfony AvBitlyBundle

Installs: 4 976

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 11

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-master 2016-12-05 22:26 UTC

This package is auto-updated.

Last update: 2021-12-21 22:33:33 UTC


README

This bundle permits to use the bitly api V3

Configuration

In your config.yml, add this parameters:

av_bitly:
    bitly_token:  %bitly_token%  #mandatory
    bitly_api_address: '' #optional, default value = 'https://api-ssl.bitly.com'
    bitly_domain: yourdomain #optional, default value = ''

Usage

$bitlyService = $this->get('av_bitly.bitly_service');
//generate the bitly url
$shortUrl = $bitlyService->shorten($route);

Fonctions

The functions availables are:

-shorten