krdinesh/oauth2-greenhouse

GreenhouseOAuth 2.0 Client Provider for The PHP League OAuth2-Client

v1.0.2 2017-10-11 04:57 UTC

This package is auto-updated.

Last update: 2024-11-16 15:40:24 UTC


README

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.