Skip to content

dkthelearner/oauth2-greenhouse

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

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.