PHPackages                             adam-paterson/oauth2-slack - 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. adam-paterson/oauth2-slack

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

adam-paterson/oauth2-slack
==========================

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

1.1.3(8y ago)22694.8k—0.6%22[1 issues](https://github.com/adam-paterson/oauth2-slack/issues)[3 PRs](https://github.com/adam-paterson/oauth2-slack/pulls)4MITPHPPHP &gt;=5.6.0

Since Aug 27Pushed 5y ago2 watchersCompare

[ Source](https://github.com/adam-paterson/oauth2-slack)[ Packagist](https://packagist.org/packages/adam-paterson/oauth2-slack)[ RSS](/packages/adam-paterson-oauth2-slack/feed)WikiDiscussions develop Synced 1mo ago

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

Slack Provider for OAuth 2.0 Client
===================================

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

[![Latest Version](https://camo.githubusercontent.com/b0d17caac9ef7551355e344d77c6d165f26bfdccb73d0469940d39f348767cb0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6164616d2d7061746572736f6e2f6f61757468322d736c61636b2e7376673f7374796c653d666c61742d737175617265)](https://github.com/adam-paterson/oauth2-slack/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/16ca995b1bda7183ff399ebe1eba9d1c7369d9c4bdeba0c166f5ef69d94fb030/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6164616d2d7061746572736f6e2f6f61757468322d736c61636b2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/adam-paterson/oauth2-slack)[![HHVM Status](https://camo.githubusercontent.com/d5d7c7f176215eb976c0091d9fc546fa84022d902b35c5ab1fb816bfda71e732/68747470733a2f2f696d672e736869656c64732e696f2f6868766d2f6164616d2d7061746572736f6e2f6f61757468322d736c61636b2e7376673f7374796c653d666c61742d737175617265)](http://hhvm.h4cc.de/package/adam-paterson/oauth2-slack)[![Coverage Status](https://camo.githubusercontent.com/81fefb4d49783fc021316d40c447eb5e830bfead4b93407c1de41bbb850c6e53/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6164616d2d7061746572736f6e2f6f61757468322d736c61636b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/adam-paterson/oauth2-slack/code-structure)[![Quality Score](https://camo.githubusercontent.com/483463da646f1cf674052e19b9f49b3680bb32b2117e9a1c7dbf5194df6e944c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6164616d2d7061746572736f6e2f6f61757468322d736c61636b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/adam-paterson/oauth2-slack)[![Dependency Status](https://camo.githubusercontent.com/3f6bac3541c7ff2cb4cc442abba762ec364b0909e3451b09dfa546c67fb09fe0/68747470733a2f2f696d672e736869656c64732e696f2f76657273696f6e6579652f642f7068702f6164616d2d7061746572736f6e3a6f61757468322d736c61636b2f312e312e322e7376673f7374796c653d666c61742d737175617265)](https://www.versioneye.com/php/adam-paterson:oauth2-slack/1.1.2)[![Total Downloads](https://camo.githubusercontent.com/499353b23b68313c800e29e80081bfd3a81a804514e9da8276289664c5654981/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6164616d2d7061746572736f6e2f6f61757468322d736c61636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/adam-paterson/oauth2-slack)

This package provides Slack 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-slack
```

Usage
-----

[](#usage)

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

### Authorization Code Flow

[](#authorization-code-flow)

```
