1tomany / oauth2-intuit
Intuit OAuth2 provider for The PHP League OAuth2 Client package.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/1tomany/oauth2-intuit
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