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

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

socialiteproviders/salla
========================

Salla Ecommerce OAuth2 Provider for Laravel Socialite

040PHP

Since Feb 21Pushed 4w ago2 watchersCompare

[ Source](https://github.com/SocialiteProviders/Salla)[ Packagist](https://packagist.org/packages/socialiteproviders/salla)[ RSS](/packages/socialiteproviders-salla/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Salla
=====

[](#salla)

```
composer require socialiteproviders/salla
```

Create Account &amp; App on Salla Partner
-----------------------------------------

[](#create-account--app-on-salla-partner)

First you need to register account on [Salla Partners Portal](https://salla.partners/) and create your app to get credentials `client_id` &amp; `client_secret`. See the docs for more info [Salla API Docs](https://docs.salla.dev)

Installation &amp; Basic Usage
------------------------------

[](#installation--basic-usage)

Please see the [Base Installation Guide](https://socialiteproviders.com/usage/), then follow the provider specific instructions below.

### Add configuration to `config/services.php`

[](#add-configuration-to-configservicesphp)

```
'salla' => [
    'client_id' => env('SALLA_CLIENT_ID'),
    'client_secret' => env('SALLA_CLIENT_SECRET'),
    'redirect' => env('SALLA_REDIRECT_URI'),
],
```

### Add provider event listener

[](#add-provider-event-listener)

#### Laravel 11+

[](#laravel-11)

In Laravel 11, the default `EventServiceProvider` provider was removed. Instead, add the listener using the `listen` method on the `Event` facade, in your `AppServiceProvider` `boot` method.

- Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.

```
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
    $event->extendSocialite('salla', \SocialiteProviders\Salla\Provider::class);
});
```

Laravel 10 or below Configure the package's listener to listen for `SocialiteWasCalled` events. Add the event to your `listen[]` array in `app/Providers/EventServiceProvider`. See the [Base Installation Guide](https://socialiteproviders.com/usage/) for detailed instructions.

```
protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // ... other providers
        \SocialiteProviders\Salla\SallaExtendSocialite::class.'@handle',
    ],
];
```

### Usage

[](#usage)

You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):

```
return Socialite::driver('salla')->redirect();
```

After redirect, You may return User instance:

```
return Socialite::driver('salla')->user();
```

### Returned User fields

[](#returned-user-fields)

- `id`
- `name`
- `email`
- `mobile`
- `role`
- `merchant`
- - `id`
- - `username`
- - `name`
- - `avatar`
- - `plan`
- - `status`
- - `domain`
- - `tax_number`
- - `commercial_number`

###  Health Score

23

—

LowBetter than 30% of packages

Maintenance62

Regular maintenance activity

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/65eb3a7ba2a2c13b3a9de48b836caf759ad4052f9a839e30464c80d177d5b3d2?d=identicon)[atymic](/maintainers/atymic)

---

Top Contributors

[![lucasmichot](https://avatars.githubusercontent.com/u/513603?v=4)](https://github.com/lucasmichot "lucasmichot (2 commits)")[![ghmoha](https://avatars.githubusercontent.com/u/11588101?v=4)](https://github.com/ghmoha "ghmoha (1 commits)")[![maks-oleksyuk](https://avatars.githubusercontent.com/u/90793591?v=4)](https://github.com/maks-oleksyuk "maks-oleksyuk (1 commits)")

---

Tags

laraveloauthoauth1oauth2social-mediasocialitesocialite-providers

### Embed Badge

![Health badge](/badges/socialiteproviders-salla/health.svg)

```
[![Health](https://phpackages.com/badges/socialiteproviders-salla/health.svg)](https://phpackages.com/packages/socialiteproviders-salla)
```

###  Alternatives

[firebase/php-jwt

A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.

9.8k435.8M1.8k](/packages/firebase-php-jwt)[league/oauth2-client

OAuth 2.0 Client Library

3.8k115.1M1.0k](/packages/league-oauth2-client)[google/auth

Google Auth Library for PHP

1.4k266.3M125](/packages/google-auth)[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k98.4M87](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99895.6M95](/packages/league-oauth1-client)[lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

2.3k15.7M42](/packages/lab404-laravel-impersonate)

PHPackages © 2026

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