Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Commit

Permalink
Fixes #27, composer require command doesn't work with quotes (not sur…
Browse files Browse the repository at this point in the history
…e if this was a change in composer itself or the command never did work). Without using quotes the require now finds proper stable version.

Updated the description for the Service Provider and Alias inclusion, refs #34. Tnx @mbarwick83 for mentioning.
  • Loading branch information
jelovac committed Oct 26, 2017
1 parent bd1b483 commit ca0abf4
Showing 1 changed file with 94 additions and 94 deletions.
188 changes: 94 additions & 94 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,94 +1,94 @@
bitly4laravel
=============
[![Build Status](https://travis-ci.org/jelovac/bitly4laravel.png?branch=master)](https://travis-ci.org/jelovac/bitly4laravel) [![Latest Stable Version](https://poser.pugx.org/jelovac/bitly4laravel/v/stable.png)](https://packagist.org/packages/jelovac/bitly4laravel) [![Total Downloads](https://poser.pugx.org/jelovac/bitly4laravel/downloads.png)](https://packagist.org/packages/jelovac/bitly4laravel) [![Latest Unstable Version](https://poser.pugx.org/jelovac/bitly4laravel/v/unstable.png)](https://packagist.org/packages/jelovac/bitly4laravel) [![License](https://poser.pugx.org/jelovac/bitly4laravel/license.png)](https://packagist.org/packages/jelovac/bitly4laravel)

Provides a Laravel package to communicate with Bit.ly API.

In order to use this package you need to get [OAuth Generic Access Token](https://bitly.com/a/oauth_apps) from Bitly website.

Instalation
===========

Warning this is v3 version of bitly4laravel package. If you want to use the old v2 version use the v2 branch.

Add bitly4laravel to your composer.json file.

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

Or with composer command:

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

Add provider to your app/config/app.php providers

'Jelovac\Bitly4laravel\Bitly4laravelServiceProvider',

Publish config

For Laravel 5 use:

php artisan vendor:publish

For Laravel 4 use:

php artisan config:publish jelovac/bitly4laravel

Optional (recommended)
======================

Add alias to app/config/app.php aliases

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

Usage
=====

Shorten links

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

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

License
=======

The Bitly4laravel package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)
bitly4laravel
=============
[![Build Status](https://travis-ci.org/jelovac/bitly4laravel.png?branch=master)](https://travis-ci.org/jelovac/bitly4laravel) [![Latest Stable Version](https://poser.pugx.org/jelovac/bitly4laravel/v/stable.png)](https://packagist.org/packages/jelovac/bitly4laravel) [![Total Downloads](https://poser.pugx.org/jelovac/bitly4laravel/downloads.png)](https://packagist.org/packages/jelovac/bitly4laravel) [![Latest Unstable Version](https://poser.pugx.org/jelovac/bitly4laravel/v/unstable.png)](https://packagist.org/packages/jelovac/bitly4laravel) [![License](https://poser.pugx.org/jelovac/bitly4laravel/license.png)](https://packagist.org/packages/jelovac/bitly4laravel)

Provides a Laravel package to communicate with Bit.ly API.

In order to use this package you need to get [OAuth Generic Access Token](https://bitly.com/a/oauth_apps) from Bitly website.

Instalation
===========

Warning this is v3 version of bitly4laravel package. If you want to use the old v2 version use the v2 branch.

Add bitly4laravel to your composer.json file.

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

Or with composer command:

composer require jelovac/bitly4laravel: 3.*

Add provider to your app/config/app.php providers

Jelovac\Bitly4laravel\Bitly4laravelServiceProvider::class,

Publish config

For Laravel 5 use:

php artisan vendor:publish

For Laravel 4 use:

php artisan config:publish jelovac/bitly4laravel

Optional (recommended)
======================

Add alias to app/config/app.php aliases

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

Usage
=====

Shorten links

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

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

License
=======

The Bitly4laravel package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

0 comments on commit ca0abf4

Please sign in to comment.