1tomany / oauth2-intuit
Intuit OAuth2 provider for The PHP League OAuth2 Client package.
v1.0.1
2024-11-20 20:24 UTC
Requires
- php: >=8.3
- league/oauth2-client: ^2.7
Requires (Dev)
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^11.4
README
This package provides Intuit OAuth 2.0 support for The PHP League's OAuth 2.0 Client.
Installation
composer require 1tomany/oauth2-intuit
Usage
Usage is the similar to The PHP League's OAuth 2.0 Client, using \OneToMany\OAuth2\Client\Provider\Intuit
as the provider.
$provider = new \OneToMany\OAuth2\Client\Provider\Intuit([ 'clientId' => 'intuit-client-id', 'clientSecret' => 'intuit-client-secret', 'redirectUri' => 'https://example.com/oauth/connect' ]);
The provider will use com.intuit.quickbooks.accounting
as the default scope if the scopes
key is not provided as part of the constructor parameters.
Testing
./vendor/bin/phpunit
Credits
License
The MIT License