shep517/oauth2-jobber

为 The PHP League OAuth2-Client 提供的 Jobber OAuth 2.0 客户端

1.0.0 2023-06-01 16:58 UTC

This package is auto-updated.

Last update: 2024-09-30 01:47:09 UTC


README

安装

要安装,请使用 composer

composer require shep517/oauth2-jobber

用法

用法与 The League 的 OAuth 客户端相同,使用 \Shep517\OAuth2\Client\Provider\Jobber 作为提供者。

授权码流

$provider = new \Shep517\OAuth2\Client\Provider\Jobber([
    'clientId'          => '{jobber-client-id}',
    'clientSecret'      => '{jobber-client-secret}',
    'redirectUri'       => 'https://example.com/callback-url',
]);

有关此包的进一步用法,请参阅核心包文档中的“授权码授予”部分

致谢

许可协议

MIT 许可协议 (MIT)。有关更多信息,请参阅许可文件