PHPackages                             krdinesh/laravel-oauth2-greenhouse - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. krdinesh/laravel-oauth2-greenhouse

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

krdinesh/laravel-oauth2-greenhouse
==================================

A Laravel 5.2 service provider for league/oauth2-greenhouse

v1.0.1(8y ago)0342MITPHPPHP &gt;=5.5.9

Since Sep 29Pushed 8y ago1 watchersCompare

[ Source](https://github.com/krdinesh/laravel-oauth2-greenhouse)[ Packagist](https://packagist.org/packages/krdinesh/laravel-oauth2-greenhouse)[ RSS](/packages/krdinesh-laravel-oauth2-greenhouse/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (7)Versions (4)Used By (0)

krdinesh/laravel-oauth2-greenhouse
==================================

[](#krdineshlaravel-oauth2-greenhouse)

krdinesh/laravel-oauth2-greenhouse is a [Laravel 5.2](https://laravel.com/) service provider for [krdinesh/oauth2-greenhouse](https://github.com/krdinesh/oauth2-greenhouse).

Installation
------------

[](#installation)

The preferred method of installation is via [Packagist](https://packagist.org/packages/krdinesh/laravel-oauth2-greenhouse) and [Composer](http://getcomposer.org/). Run the following command to install the package and add it as a requirement to your project's `composer.json`:

```
composer require krdinesh/laravel-oauth2-greenhouse
```

After requiring the package with Composer, you'll need to add the following to the `providers` array in `config/app.php`:

```
Krdinesh\Laravel\OAuth2\Greenhouse\GreenhouseServiceProvider::class
```

Then, add the following to the `aliases` array in the same file:

```
'Greenhouse' => Krdinesh\Laravel\OAuth2\Greenhouse\Facades\Greenhouse::class
```

Now, run the following to properly set up the package with your Laravel application:

```
php artisan vendor:publish
```

Finally, Add your client ID, client secret, and redirect URI to `config/greenhouse.php`.

Examples
--------

[](#examples)

Create an authorization URL and redirect users to it in order to request access to their Greenhouse account:

```
$authUrl = Greenhouse::authorize([], function ($url, $provider) use ($request) {
    $request->session()->put('greenhouseState', $provider->getState());
    return $url;
});

return redirect()->away($authUrl);
```

In the route for the redirect URI, check the state and authorization code, and use the code to get an access token. Store the token to the session or to the user's profile in your data store.

```
if (!$request->has('state') || $request->state !== $request->session()->get('greenhouseState')) {
    abort(400, 'Invalid state');
}

if (!$request->has('code')) {
    abort(400, 'Authorization code not available');
}

$token = Greenhouse::getAccessToken('authorization_code', [
    'code' => $request->code,
]);

$token->getToken();
```

Copyright and License
---------------------

[](#copyright-and-license)

The krdinesh/laravel-oauth2-greenhouse library is copyright ©[Dinesh kumar](https://github.com/krdinesh) and licensed for use under the MIT License (MIT). Please see [LICENSE](https://github.com/krdinesh/laravel-oauth2-greenhouse/blob/master/LICENSE) for more information.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 73.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~11 days

Total

2

Last Release

3185d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/88a06089776ca12d199f848d4a2b40957790f2ed7ac51d1327c89c891e728cf6?d=identicon)[dkthelearner](/maintainers/dkthelearner)

---

Top Contributors

[![rsys-dinesh](https://avatars.githubusercontent.com/u/15073907?v=4)](https://github.com/rsys-dinesh "rsys-dinesh (30 commits)")[![dineshbyte](https://avatars.githubusercontent.com/u/7135188?v=4)](https://github.com/dineshbyte "dineshbyte (11 commits)")

---

Tags

greenhouselaravellaravel-5-packagelaravel-frameworkoauth2serviceproviderlaraveloauth2greenhouseLaravel 5.2

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/krdinesh-laravel-oauth2-greenhouse/health.svg)

```
[![Health](https://phpackages.com/badges/krdinesh-laravel-oauth2-greenhouse/health.svg)](https://phpackages.com/packages/krdinesh-laravel-oauth2-greenhouse)
```

###  Alternatives

[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5752.2M17](/packages/directorytree-ldaprecord-laravel)[webfox/laravel-xero-oauth2

A Laravel integration for Xero using the Oauth 2.0 spec

58488.6k2](/packages/webfox-laravel-xero-oauth2)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6783.6k5](/packages/hasinhayder-tyro)[masterix21/laravel-licensing

Laravel licensing package with polymorphic assignment to any model, activation keys, expirations/renewals, and seat control via LicenseUsage. Supports offline verification with public-key–signed tokens, a CLI to generate/rotate/revoke keys, and an extensible architecture via config and contracts.

1542.1k4](/packages/masterix21-laravel-licensing)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
