PHPackages                             hughbertd/oauth2-unsplash - 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. hughbertd/oauth2-unsplash

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

hughbertd/oauth2-unsplash
=========================

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

1.0.3(8y ago)81.8M—9.6%1[1 PRs](https://github.com/HughbertD/oauth2-unsplash/pulls)4MITPHPPHP &gt;=5.6.0

Since Apr 5Pushed 8y agoCompare

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

READMEChangelog (4)Dependencies (3)Versions (5)Used By (4)

Unsplash Provider for OAuth 2.0 Client
======================================

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

[![Build Status](https://camo.githubusercontent.com/098cf2d27d4283987d5cd202ff785cec63436ca79e97313f8cd7b26faa07b512/68747470733a2f2f7472617669732d63692e6f72672f4875676862657274442f6f61757468322d756e73706c6173682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/HughbertD/oauth2-unsplash)

Provides Unsplash OAuth 2.0 support as an implementation of PHP League's [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client)

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

[](#installation)

To install, use composer:

```
composer require hughbertd/oauth2-unsplash

```

Usage
-----

[](#usage)

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

### Authorization Code Flow

[](#authorization-code-flow)

```
