2017 © Pedro Peláez
 

library bitly4laravel

Provides a Laravel package to communicate with Bit.ly API

image

superbuddy/bitly4laravel

Provides a Laravel package to communicate with Bit.ly API

  • Monday, August 15, 2016
  • by superbuddy
  • Repository
  • 1 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 17 Forks
  • 0 Open issues
  • 17 Versions
  • 0 % Grown

The README.md

bitly4laravel

Build Status Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Provides a Laravel package to communicate with Bit.ly API., (*2)

In order to use this package you need to get OAuth Generic Access Token from Bitly website., (*3)

Instalation

Warning this is v3 version of bitly4laravel package. If you want to use the old v2 version use the v2 branch., (*4)

Add bitly4laravel to your composer.json file., (*5)

require : {
    "jelovac/bitly4laravel": "3.*"
}

Or with composer command:, (*6)

composer require "jelovac/bitly4laravel": "3.*"

Add provider to your app/config/app.php providers, (*7)

'Jelovac\Bitly4laravel\Bitly4laravelServiceProvider',

Publish config, (*8)

For Laravel 5 use:, (*9)

php artisan vendor:publish

For Laravel 4 use:, (*10)

php artisan config:publish jelovac/bitly4laravel

Optional (recommended)

Add alias to app/config/app.php aliases, (*11)

'Bitly' => 'Jelovac\Bitly4laravel\Facades\Bitly4laravel',

Usage

Shorten links, (*12)

Bitly::shorten('http://google.com/');

Response format: JSON

{
    "data": {
      "global_hash": "900913",
      "hash": "ze6poY",
      "long_url": "http://google.com/",
      "new_hash": 0,
      "url": "http://bit.ly/ze6poY"
    },
    "status_code": 200,
    "status_txt": "OK"
}

Expand links, (*13)

Bitly::expand('http://bit.ly/ze6poY');

Response format: JSON

{
    "data": {
      "expand": [
        {
          "global_hash": "900913",
          "long_url": "http://google.com/",
          "short_url": "http://bit.ly/ze6poY",
          "user_hash": "ze6poY"
        }
      ]
    },
    "status_code": 200,
    "status_txt": "OK"
}

Repository

https://github.com/jelovac/bitly4laravel, (*14)

License

The Bitly4laravel package is open-sourced software licensed under the MIT license, (*15)

The Versions

15/08 2016

dev-master

9999999-dev

Provides a Laravel package to communicate with Bit.ly API

  Sources   Download

MIT

The Requires

 

The Development Requires

10/06 2015

v3.x-dev

3.9999999.9999999.9999999-dev

Provides a Laravel package to communicate with Bit.ly API

  Sources   Download

MIT

The Requires

 

The Development Requires

05/05 2015

v3.1.0

3.1.0.0

Provides a Laravel package to communicate with Bit.ly API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vladimir Jelovac

05/04 2015

v3.0.3

3.0.3.0

Provides a Laravel package to communicate with Bit.ly API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vladimir Jelovac

05/04 2015

v2.x-dev

2.9999999.9999999.9999999-dev

Provides a Laravel package to communicate with Bit.ly API

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

by Vladimir Jelovac

05/04 2015

v2.2.3

2.2.3.0

Provides a Laravel package to communicate with Bit.ly API

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

by Vladimir Jelovac

05/03 2015

v3.0.2

3.0.2.0

Provides a Laravel package to communicate with Bit.ly API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vladimir Jelovac

19/02 2015

v2.2.2

2.2.2.0

Provides a Laravel package to communicate with Bit.ly API

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

by Vladimir Jelovac

17/02 2015

v3.0.1

3.0.1.0

Provides a Laravel package to communicate with Bit.ly API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vladimir Jelovac

16/02 2015

v3.0

3.0.0.0

Provides a Laravel package to communicate with Bit.ly API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vladimir Jelovac

16/02 2015

v2.2.1

2.2.1.0

Provides a Laravel package to communicate with Bit.ly API

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

by Vladimir Jelovac

13/02 2015

v2.2.0

2.2.0.0

Provides a Laravel package to communicate with Bit.ly API

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

by Vladimir Jelovac

08/06 2014

v2.1.3

2.1.3.0

Provides basic bitly API to use with Laravel 4

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

by Vladimir Jelovac

12/04 2014

v2.1.0

2.1.0.0

Provides basic bitly API to use with Laravel 4

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

by Vladimir Jelovac

11/02 2014

v2.0.3

2.0.3.0

Provides basic bitly API to use with Laravel 4

  Sources   Download

BSD-2-Clause

The Requires

 

by Vladimir Jelovac

10/02 2014

v2.0.2

2.0.2.0

Provides basic bitly API to use with Laravel 4

  Sources   Download

BSD-2-Clause

The Requires

 

by Vladimir Jelovac

05/01 2014

v1.0

1.0.0.0

Provides basic bitly API to use with Laravel 4

  Sources   Download

BSD-2-Clause

The Requires

 

by Vladimir Jelovac