PHPackages                             salla/ouath2-merchant - 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. salla/ouath2-merchant

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

salla/ouath2-merchant
=====================

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

2.0.6(3mo ago)21117.6k↓33.7%151MITPHPPHP ^8.1|^8.3CI passing

Since Sep 27Pushed 3mo ago14 watchersCompare

[ Source](https://github.com/SallaApp/oauth2-merchant)[ Packagist](https://packagist.org/packages/salla/ouath2-merchant)[ Docs](https://github.com/sallaApp/ouath2-merchant)[ RSS](/packages/salla-ouath2-merchant/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (14)Used By (1)

 [ ![Logo](https://camo.githubusercontent.com/faa3709d60362cefdb30f6efac66211055ce41f1418c7725139d27bd69f85432/68747470733a2f2f73616c6c612e6465762f77702d636f6e74656e742f75706c6f6164732f323032332f30332f312d4c696768742e706e67) ](https://salla.dev)Salla OAuth 2.0 Client
======================

[](#salla-oauth-20-client)

 This package provides [Salla OAuth 2.0](https://salla.dev/blog/oauth-callback-urls/) support for the PHP language [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client).
 [**Explore our blogs »**](https://salla.dev/)

 [Report Bug](https://github.com/SallaApp/oauth2-merchant/issues/new) · [Request Feature](https://github.com/SallaApp/oauth2-merchant/discussions/new) · [&lt;/Salla Developers&gt;](https://t.me/salladev)

Overview
--------

[](#overview)

To use this package, it will be necessary to have a Salla client ID and client secret. These are referred to as `{client-id}` and `{client-secret}` in the documentation.

Please follow the [Salla instructions](https://salla.dev/blog/oauth-callback-urls/) to create the required credentials.

OAuth Workflow
--------------

[](#oauth-workflow)

[![OAuth Workflow](https://camo.githubusercontent.com/d6415261413f456b96963dc118c15948a22315d1c2650bc181c0f2d21b63d859/68747470733a2f2f692e6962622e636f2f784c796e3830742f4672616d652d313233362d4f417574682d352e706e67)](https://camo.githubusercontent.com/d6415261413f456b96963dc118c15948a22315d1c2650bc181c0f2d21b63d859/68747470733a2f2f692e6962622e636f2f784c796e3830742f4672616d652d313233362d4f417574682d352e706e67)

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

[](#installation)

You can install the package via Composer:

```
composer require salla/ouath2-merchant
```

([back to top](#top))

Usage
-----

[](#usage)

### Authorization Code Flow

[](#authorization-code-flow)

```
