Skip to content

Latest commit

 

History

History
executable file
·
36 lines (23 loc) · 924 Bytes

README.md

File metadata and controls

executable file
·
36 lines (23 loc) · 924 Bytes

GreenHouse Provider for OAuth 2.0 Client

This package provides GreenHouse OAuth 2.0 support for the PHP League's OAuth 2.0 Client.

Installation

To install, use composer:

composer require krdinesh/oauth2-greenhouse

Usage

Usage is the same as The League's OAuth client, using \League\OAuth2\Client\Provider\GreenHouse as the provider.

Managing Scopes

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);

Testing

$ ./vendor/bin/phpunit

License

The MIT License (MIT). Please see License File for more information.