定制 kobas/oauth2-kobas 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kobas/oauth2-kobas

最新稳定版本:1.0

Composer 安装命令:

composer require kobas/oauth2-kobas

包简介

Kobas OAuth 2.0 Client Provider for The PHP League OAuth2-Client

README 文档

README

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads

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

If you are doing an integration for Kobas it's more likely you want our API Client which uses this library.

Installation

To install, use composer:

composer require kobas/oauth2-kobas

Usage

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

Authorization Code Flow

$provider = new Kobas\OAuth2\Client\Provider\Kobas([
    'clientId'          => '{kobas-client-id}',
    'clientSecret'      => '{kobas-client-secret}',
    'companyId'         => '{kobas-company-id}',
]);

$accessToken = $provider->getAccessToken('client_credentials', ['scope' => 'integration']);

Testing

$ ./vendor/bin/phpunit

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

统计信息

  • 总下载量: 20.96k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-10-09