This package provides Mailxpert OAuth 2.0 support for the PHP League's OAuth 2.0 Client.
To install, use composer:
composer require mailxpert/oauth2-mailxpert
Usage is the same as The League's OAuth client, using \Mailxpert\OAuth2\Client\Provider\Mailxpert as the provider.
$provider = new Mailxpert\OAuth2\Client\Provider\Mailxpert([
'clientId' => '{mailxpert-client-id}',
'clientSecret' => '{mailxpert-client-secret}',
'redirectUri' => 'https://example.com/redirect-url'
]);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/phpunitRun 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 --ansicomposer update:
docker run --rm --interactive --tty --volume $PWD:/app composer updateThe MIT License (MIT). Please see License File for more information.