PHPackages                             mapado/league-oauth2-provider - 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. mapado/league-oauth2-provider

ActiveLibrary

mapado/league-oauth2-provider
=============================

phpleague OAuth2 provider for Mapado

0161PHP

Since Aug 27Pushed 2y ago2 watchersCompare

[ Source](https://github.com/mapado/league-oauth2-provider)[ Packagist](https://packagist.org/packages/mapado/league-oauth2-provider)[ RSS](/packages/mapado-league-oauth2-provider/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

league-oauth2-provider [![Build Status](https://camo.githubusercontent.com/e7ef2d4fed41a9b1c07eccc6a966dcf247b9f7b1439bad3104dbec98e761779c/68747470733a2f2f7472617669732d63692e6f72672f6d617061646f2f6c65616775652d6f61757468322d70726f76696465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mapado/league-oauth2-provider)
=============================================================================================================================================================================================================================================================================================================================================

[](#league-oauth2-provider-)

[phpleague OAuth2](http://oauth2-client.thephpleague.com/) provider for Mapado

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

[](#installation)

```
composer require mapado/league-oauth2-provider
```

Usage
-----

[](#usage)

Usage is the same as The League's OAuth client, using `\Mapado\LeagueOAuth2Provider\Provider\MapadoOAuth2Provider` as the provider.

### Get an client\_credentials access token

[](#get-an-client_credentials-access-token)

```
$provider = new \Mapado\LeagueOAuth2Provider\Provider\MapadoOAuth2Provider([
    'clientId'          => '{mapado-client-id}',
    'clientSecret'      => '{mapado-client-secret}',
]);

$provider->getAccessToken('client_credentials', [
    'scope' => 'scope1 scope2',
]);
```

### Get a password access token

[](#get-a-password-access-token)

```
$provider = new \Mapado\LeagueOAuth2Provider\Provider\MapadoOAuth2Provider([
    'clientId'          => '{mapado-client-id}',
    'clientSecret'      => '{mapado-client-secret}',
]);

$provider->getAccessToken('password', [
    'scope' => 'scope1 scope2',
    'username' => 'username',
    'password' => 'password',
]);
```

Both call should return a instance of `League\OAuth2\Client\Token\AccessToken`. See the [phpleague OAuth2 client documentation](http://oauth2-client.thephpleague.com/) for more informations.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3277986d0e1f93c7e8a58fdaf1b52e3f5a1588e73dfa298d33aafb1ebbde5ef2?d=identicon)[jdeniau](/maintainers/jdeniau)

![](https://www.gravatar.com/avatar/90d135128b469dc38fcf186ac78d0f2cd82fc696ffcf5be8a8c486b7bd911ff6?d=identicon)[mapado](/maintainers/mapado)

---

Top Contributors

[![jdeniau](https://avatars.githubusercontent.com/u/1398469?v=4)](https://github.com/jdeniau "jdeniau (7 commits)")

### Embed Badge

![Health badge](/badges/mapado-league-oauth2-provider/health.svg)

```
[![Health](https://phpackages.com/badges/mapado-league-oauth2-provider/health.svg)](https://phpackages.com/packages/mapado-league-oauth2-provider)
```

PHPackages © 2026

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