PHPackages                             xandros15/oauth2-imgur - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. xandros15/oauth2-imgur

AbandonedArchivedLibrary[Authentication &amp; Authorization](/categories/authentication)

xandros15/oauth2-imgur
======================

Imgur OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1.0.1(10y ago)023MITPHPPHP &gt;=5.5.0

Since Sep 8Pushed 9y ago1 watchersCompare

[ Source](https://github.com/xandros15/oauth2-imgur)[ Packagist](https://packagist.org/packages/xandros15/oauth2-imgur)[ RSS](/packages/xandros15-oauth2-imgur/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

Imgur Provider for OAuth 2.0 Client
===================================

[](#imgur-provider-for-oauth-20-client)

[![Latest Version](https://camo.githubusercontent.com/6a294dc1c4487e4e1cc09d4c64fd23ab023a94b1a65e053fa82f1d34072b1169/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6164616d2d7061746572736f6e2f6f61757468322d696d6775722e7376673f7374796c653d666c61742d737175617265)](https://github.com/adam-paterson/oauth2-imgur/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/9ee36a282efb4ba89ee45b74e76cdae05eb717c649b4a8ea7e9cdf9625030903/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6164616d2d7061746572736f6e2f6f61757468322d696d6775722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/adam-paterson/oauth2-imgur)[![HHVM Status](https://camo.githubusercontent.com/c2b86c34979c406ace726e3a57a7b577458bb663ab9d8d636d97117baca6a46e/68747470733a2f2f696d672e736869656c64732e696f2f6868766d2f6164616d2d7061746572736f6e2f6f61757468322d696d6775722e7376673f7374796c653d666c61742d737175617265)](http://hhvm.h4cc.de/package/adam-paterson/oauth2-imgur)[![Coverage Status](https://camo.githubusercontent.com/68ebd450d6662addf332ce29b5c3b5dce001b05257db6ada2a633aa5df4a61af/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6164616d2d7061746572736f6e2f6f61757468322d696d6775722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/adam-paterson/oauth2-imgur/code-structure)[![Quality Score](https://camo.githubusercontent.com/bf3f41c8f6323ba928faf68b8881342f548475e1ddef01e480d5f1a360abc0e8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6164616d2d7061746572736f6e2f6f61757468322d696d6775722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/adam-paterson/oauth2-imgur)[![Dependency Status](https://camo.githubusercontent.com/279370a5d06391ffc07236556fc9a66ad6be80258a3e4f97523371cc7d3291ed/68747470733a2f2f696d672e736869656c64732e696f2f76657273696f6e6579652f642f7068702f6164616d2d7061746572736f6e3a6f61757468322d696d6775722f312e302e302e7376673f7374796c653d666c61742d737175617265)](https://www.versioneye.com/php/adam-paterson:oauth2-imgur/1.0.0)[![Total Downloads](https://camo.githubusercontent.com/81a739f2681057e58ee89105d98d60670156b66dda896391a0d2377d5cb1f01e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6164616d2d7061746572736f6e2f6f61757468322d696d6775722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/adam-paterson/oauth2-imgur)This package provides Imgur OAuth 2.0 support for the PHP League's [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client).

Installation
------------

[](#installation)

To install, use composer:

```
composer require adam-paterson/oauth2-imgur

```

Usage
-----

[](#usage)

Usage is the same as The League's OAuth client, using `\AdamPaterson\OAuth2\Client\Provider\Imgur` as the provider.

### Authorization Code Flow

[](#authorization-code-flow)

session\_start();

```
