PHPackages                             fotografde/oauth-client - 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. fotografde/oauth-client

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

fotografde/oauth-client
=======================

Oauth fde client provider for usage with oauth-server

1.1.0(3y ago)051.2k↑40%[1 PRs](https://github.com/fotografde/oauth-client/pulls)MITPHPPHP &gt;=5.6CI failing

Since Jan 24Pushed 3y ago12 watchersCompare

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

READMEChangelog (9)Dependencies (5)Versions (9)Used By (0)

[![Build Status](https://camo.githubusercontent.com/006957838efa3de4a742d83746ced7b21c913f042648eddabcf1289520497734/68747470733a2f2f7472617669732d63692e6f72672f666f746f6772616664652f6f617574682d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/fotografde/oauth-client)

[![Coverage Status](https://camo.githubusercontent.com/327e8377162d7787a79cbcb2c84c58b3384ea303a0023c4910610a38de5140ce/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f666f746f6772616664652f6f617574682d636c69656e742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/fotografde/oauth-client?branch=master)

Getphoto Provider for OAuth 2.0 Client
======================================

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

This package provides Getphoto 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 getphoto/oauth-client
```

Usage
-----

[](#usage)

**! NOTE !** For common use case with caching check [Caching tokens](#caching-tokens)

Usage is the same as The League's OAuth client, using `\Getphoto\Oauth2\OauthProvider` as the provider. Simple frontend client app using `Getphoto\oauth-client` with different grant types implemented can be found [here](https://dev.getphoto.io/ivan.toth/oauth-client-test)

### Client credentials grant

[](#client-credentials-grant)

```
