PHPackages                             mnastalski/allegro-socialite - 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. mnastalski/allegro-socialite

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

mnastalski/allegro-socialite
============================

Allegro OAuth2 Provider for Laravel Socialite

v1.0.0(4y ago)1542MITPHPPHP &gt;=7.4

Since May 24Pushed 4y ago1 watchersCompare

[ Source](https://github.com/mnastalski/allegro-socialite)[ Packagist](https://packagist.org/packages/mnastalski/allegro-socialite)[ RSS](/packages/mnastalski-allegro-socialite/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Allegro Socialite
=================

[](#allegro-socialite)

Allegro OAuth2 Provider for [Laravel Socialite](https://laravel.com/docs/master/socialite).

Requirements
------------

[](#requirements)

- PHP &gt;=7.4

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

[](#installation)

```
composer require mnastalski/allegro-socialite
```

Usage
-----

[](#usage)

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

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

```
'allegro' => [
    'client_id' => env('ALLEGRO_CLIENT_ID'),
    'client_secret' => env('ALLEGRO_CLIENT_SECRET'),
    'redirect' => env('ALLEGRO_REDIRECT'),
],
```

To make sandbox mode configurable you can add the following to the above configuration:

```
'sandbox' => env('ALLEGRO_SANDBOX', false),
```

### Example usage:

[](#example-usage)

```
use Laravel\Socialite\Facades\Socialite;

$provider = Socialite::driver('allegro');

$provider->redirect();
$provider->user();
$provider->getAccessToken();
```

For `$provider->user()` to work the `allegro:api:profile:read` permission must be granted.

### Refreshing the access token:

[](#refreshing-the-access-token)

```
Socialite::driver('allegro')->getRefreshTokenResponse($refreshToken);
```

Example response:

```
[
    'access_token' => '...',
    'token_type' => 'bearer',
    'refresh_token' => '...',
    'expires_in' => 43199,
    'scope' => 'allegro:api:profile:read',
    'allegro_api' => true,
    'jti' => '...',
]
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1502d ago

### Community

Maintainers

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

---

Top Contributors

[![mnastalski](https://avatars.githubusercontent.com/u/10223434?v=4)](https://github.com/mnastalski "mnastalski (3 commits)")

---

Tags

allegrolaravelprovideroauthsocialiteallegro

### Embed Badge

![Health badge](/badges/mnastalski-allegro-socialite/health.svg)

```
[![Health](https://phpackages.com/badges/mnastalski-allegro-socialite/health.svg)](https://phpackages.com/packages/mnastalski-allegro-socialite)
```

###  Alternatives

[socialiteproviders/manager

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

42747.6M583](/packages/socialiteproviders-manager)[kovah/laravel-socialite-oidc

OpenID Connect OAuth2 Provider for Laravel Socialite

24134.1k](/packages/kovah-laravel-socialite-oidc)

PHPackages © 2026

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