mailxpert / oauth2-mailxpert
mailXpert OAuth 2.0 Client Provider for the PHP League OAuth 2.0 Client
Installs: 337
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/mailxpert/oauth2-mailxpert
Requires
- php: ^7.4|^8.0
- league/oauth2-client: ^2.0
Requires (Dev)
- mockery/mockery: ^1.6
- phpunit/phpunit: ^9
- symfony/var-dumper: ^5.4
This package is auto-updated.
Last update: 2026-01-28 11:14:30 UTC
README
This package provides Mailxpert OAuth 2.0 support for the PHP League's OAuth 2.0 Client.
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
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
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
License
The MIT License (MIT). Please see License File for more information.