mailxpert/oauth2-mailxpert

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

Maintainers

Package info

github.com/mailXpert/oauth2-mailxpert

pkg:composer/mailxpert/oauth2-mailxpert

Statistics

Installs: 351

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

2.0.0 2026-06-08 14:07 UTC

This package is auto-updated.

Last update: 2026-06-08 14:08:26 UTC


README

Packagist Software License CI Total Downloads

This package provides Mailxpert OAuth 2.0 support for the PHP League's OAuth 2.0 Client.

Requirements

Installation

To install, use composer:

composer require mailxpert/oauth2-mailxpert

Usage

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

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

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

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

The MIT License (MIT). Please see License File for more information.