appventus/avbitly-bundle

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-11-09 07:02:03 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