1tomany/oauth2-intuit

Intuit OAuth2 provider for The PHP League OAuth2 Client package.

v1.0.1 2024-11-20 20:24 UTC

This package is auto-updated.

Last update: 2024-12-20 20:34:32 UTC


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