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

1.0.0(3mo ago)2338MITPHPPHP ^7.4|^8.0

Since Nov 14Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/mailXpert/oauth2-mailxpert)[ Packagist](https://packagist.org/packages/mailxpert/oauth2-mailxpert)[ RSS](/packages/mailxpert-oauth2-mailxpert/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (4)Versions (4)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)[![Build Status](https://camo.githubusercontent.com/5e224bf38179d35aa8b6b6860b62ea680c35516a5874b2021d5edb8232596c64/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d61696c58706572742f6f61757468322d6d61696c78706572742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/mailXpert/oauth2-mailxpert)[![Coverage Status](https://camo.githubusercontent.com/310b3c69c33bd589a29005a31c9496b9a923dbe51b5534d264a78f31e7f510db/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6d61696c78706572742f6f61757468322d6d61696c78706572742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/mailxpert/oauth2-mailxpert/code-structure)[![Quality Score](https://camo.githubusercontent.com/4b435ee9284d0adfa885d2b4dde0ee83f95b5916acf6a420f47e16a9f9b3e59b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6d61696c78706572742f6f61757468322d6d61696c78706572742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/mailxpert/oauth2-mailxpert)[![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).

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)

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

Misc
----

[](#misc)

Run php-cs-fixer:

```
docker run --rm --tty -v "$PWD":/app -w /app php:7.4-cli php tools/php-cs-fixer/vendor/bin/php-cs-fixer fix -vvv --diff --dry-run --allow-risky=yes --ansi
```

composer update:

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

Credits
-------

[](#credits)

- [mailXpert GmbH](https://github.com/mailxpert)
- [ARTACK WebLab GmbH](https://github.com/artack)
- [All Contributors](https://github.com/mailxpert/oauth2-mailxpert/contributors)

License
-------

[](#license)

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

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance80

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

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 ~2631 days

Total

2

Last Release

104d ago

Major Versions

0.1.0 → 1.0.02026-01-28

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

1.0.0PHP ^7.4|^8.0

### 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 (4 commits)")

---

Tags

phpapiclientAuthenticationoauthoauth2authorization

###  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

41721.2M118](/packages/league-oauth2-google)[league/oauth2-facebook

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

32013.0M66](/packages/league-oauth2-facebook)[andalisolutions/oauth2-anaf

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

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

PHPackages © 2026

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