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.
To install, use composer:
composer require kobas/oauth2-kobas
Usage is the same as The League's OAuth client, using \Kobas\OAuth2\Client\Provider\Kobas
as the provider.
$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']);
$ ./vendor/bin/phpunit
The MIT License (MIT). Please see License File for more information.