PHPackages                             mailxpert/oauth2-mailxpert - 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. mailxpert/oauth2-mailxpert

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

mailxpert/oauth2-mailxpert
==========================

mailXpert OAuth 2.0 Client Provider for the PHP League OAuth 2.0 Client

2.0.0(3w ago)2351MITPHPPHP ^8.2CI passing

Since Nov 14Pushed 3w ago1 watchersCompare

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

READMEChangelogDependencies (6)Versions (6)Used By (0)

Mailxpert Provider for OAuth 2.0 Client
=======================================

[](#mailxpert-provider-for-oauth-20-client)

[![Packagist](https://camo.githubusercontent.com/52e8dc68eb1da624d60a9c657f868ebb3af9c56eba31fcb8ce4dfa29e918c257/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d61696c58706572742f6f61757468322d6d61696c78706572742e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/52e8dc68eb1da624d60a9c657f868ebb3af9c56eba31fcb8ce4dfa29e918c257/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d61696c58706572742f6f61757468322d6d61696c78706572742e7376673f7374796c653d666c61742d737175617265)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![CI](https://github.com/mailxpert/oauth2-mailxpert/actions/workflows/ci.yaml/badge.svg)](https://github.com/mailxpert/oauth2-mailxpert/actions/workflows/ci.yaml)[![Total Downloads](https://camo.githubusercontent.com/a694567e8bce2e9772a23d80440af12b6919b32996cbb9cd1059a190ba2c54a1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d61696c78706572742f6f61757468322d6d61696c78706572742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mailxpert/oauth2-mailxpert)

This package provides Mailxpert OAuth 2.0 support for the PHP League's [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client).

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

[](#requirements)

- PHP 8.2, 8.3, 8.4 or 8.5
- [league/oauth2-client](https://github.com/thephpleague/oauth2-client) `^2.7`

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

[](#installation)

To install, use composer:

```
composer require mailxpert/oauth2-mailxpert

```

Usage
-----

[](#usage)

Usage is the same as The League's OAuth client, using `\Mailxpert\OAuth2\Client\Provider\Mailxpert` as the provider.

### Authorization Code Flow

[](#authorization-code-flow)

```
$provider = new Mailxpert\OAuth2\Client\Provider\Mailxpert([
    'clientId'          => '{mailxpert-client-id}',
    'clientSecret'      => '{mailxpert-client-secret}',
    'redirectUri'       => 'https://example.com/redirect-url'
]);
```

Testing
-------

[](#testing)

Run the test suite:

```
composer phpunit
```

Run the full check (php-cs-fixer + PHPUnit):

```
composer test
```

Or run PHPUnit against a specific PHP version with Docker:

```
docker run --rm --tty -v "$PWD":/app -w /app php:8.2-cli php vendor/bin/phpunit
docker run --rm --tty -v "$PWD":/app -w /app php:8.5-cli php vendor/bin/phpunit
```

Misc
----

[](#misc)

Check code style with php-cs-fixer:

```
composer phpcs
```

Apply the fixes:

```
composer phpcs:fix
```

composer update:

```
docker run --rm --interactive --tty --volume $PWD:/app composer update
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/mailxpert/oauth2-mailxpert/blob/main/LICENSE) for more information.

###  Health Score

53

—

FairBetter than 96% of packages

Maintenance95

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity78

Established project with proven stability

 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

Every ~1381 days

Total

3

Last Release

21d ago

Major Versions

0.1.0 → 1.0.02026-01-28

1.0.0 → 2.0.02026-06-08

PHP version history (3 changes)0.1.0PHP ^5.6|^7.0

1.0.0PHP ^7.4|^8.0

2.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a960d5235efdb31dc5e6266966529a26f2ee271978555895a7a7119a74455b7?d=identicon)[scube](/maintainers/scube)

---

Top Contributors

[![plandolt](https://avatars.githubusercontent.com/u/922919?v=4)](https://github.com/plandolt "plandolt (6 commits)")

---

Tags

phpapiclientAuthenticationoauthoauth2authorizationmailxpert

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mailxpert-oauth2-mailxpert/health.svg)

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

###  Alternatives

[league/oauth2-google

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

42222.6M157](/packages/league-oauth2-google)[league/oauth2-facebook

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

30013.6M79](/packages/league-oauth2-facebook)[andalisolutions/oauth2-anaf

Anaf OAuth 2.0 support for the PHP League's OAuth 2.0 Client

195.9k](/packages/andalisolutions-oauth2-anaf)

PHPackages © 2026

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