mailxpert/oauth2-mailxpert
最新稳定版本:1.0.0
Composer 安装命令:
composer require mailxpert/oauth2-mailxpert
包简介
mailXpert OAuth 2.0 Client Provider for the PHP League OAuth 2.0 Client
README 文档
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.
统计信息
- 总下载量: 341
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-11-14