PHPackages                             mkarpov/slack-v2 - 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. mkarpov/slack-v2

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

mkarpov/slack-v2
================

Socialite provider for slack oauth v2

2.0.1(3y ago)0153MITPHPPHP &gt;=7.4

Since Jul 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/AkDF/slack-v2-oauth)[ Packagist](https://packagist.org/packages/mkarpov/slack-v2)[ RSS](/packages/mkarpov-slack-v2/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (10)Used By (0)

Socialite provider for slack oauth v2
=====================================

[](#socialite-provider-for-slack-oauth-v2)

### Install the package

[](#install-the-package)

```
composer require mkarpov/slack-v2
```

### Install the Service Provider

[](#install-the-service-provider)

- Add `\Socialite\SlackV2\Providers\SocialiteServiceProvider::class` to your providers\[\] array in config\\app.php.

### Install the config

[](#install-the-config)

```
php artisan vendor:publish --tag=slack-v2-config
```

#### Append to .env

[](#append-to-env)

```
// other values above
SLACK_KEY=yourkeyfortheservice
SLACK_SECRET=yoursecretfortheservice
SLACK_REDIRECT_URI=https://example.com/login

```

You do not need to add this if you add the values to the `.env` exactly as shown above. The values below are provided as a convenience in the case that a developer is not able to use the .env method

```
'slack' => [
    'client_id' => env('SLACK_KEY'),
    'client_secret' => env('SLACK_SECRET'),
    'redirect' => env('SLACK_REDIRECT_URI'),
],
```

Usage
-----

[](#usage)

in LoginController

redirectToProvider `\Socialite::driver('slack')->redirect();`

handleProviderCallback `\Socialite::driver('slack')->user();`

 Next features...Redirect to Slack with the scopes you want to access: ```php return \\Socialite::with('slack')-&gt;scopes(\[ 'identity.basic', 'identity.email', 'identity.team', 'identity.avatar' \])-&gt;redirect(); ``` License
-------

[](#license)

MIT :)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~11 days

Recently: every ~21 days

Total

9

Last Release

1296d ago

Major Versions

1.0.6 → 2.0.02022-09-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/c846b285454ca8923d07531139d4005112eaecba8e26b65bbdd27df2c92adbd4?d=identicon)[AkDF](/maintainers/AkDF)

---

Tags

laraveloauthsocialitev2

### Embed Badge

![Health badge](/badges/mkarpov-slack-v2/health.svg)

```
[![Health](https://phpackages.com/badges/mkarpov-slack-v2/health.svg)](https://phpackages.com/packages/mkarpov-slack-v2)
```

###  Alternatives

[socialiteproviders/manager

Easily add new or override built-in providers in Laravel Socialite.

42442.0M544](/packages/socialiteproviders-manager)[martinbean/socialite-discord-provider

A Discord provider for Laravel Socialite.

2839.2k](/packages/martinbean-socialite-discord-provider)[seoda/socialite-apple

Apple OAuth2 Provider for Laravel Socialite

1128.1k](/packages/seoda-socialite-apple)[laravel-uis/socialite-ui

A Laravel Socialite UI for the new Laravel Starter Kits

114.3k1](/packages/laravel-uis-socialite-ui)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
