This package provides GreenHouse OAuth 2.0 support for the PHP League's OAuth 2.0 Client.
To install, use composer:
composer require krdinesh/oauth2-greenhouse
Usage is the same as The League's OAuth client, using \League\OAuth2\Client\Provider\GreenHouse
as the provider.
When creating your GreenHouse authorization URL, you can specify the state and scopes your application may authorize.
$options = [
'scope' => ['candidates.views','candidates.create','jobs.views'] // array or string
];
$authorizationUrl = $provider->getAuthorizationUrl($options);
$ ./vendor/bin/phpunit
The MIT License (MIT). Please see License File for more information.