PHPackages                             krdinesh/laravel-oauth2-smartrecruiters - 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-smartrecruiters

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

krdinesh/laravel-oauth2-smartrecruiters
=======================================

A Laravel 5.2 service provider for league/oauth2-smartRecruiters

v1.0.0(8y ago)0277MITPHPPHP &gt;=5.5.9

Since Oct 2Pushed 8y ago1 watchersCompare

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

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

krdinesh/laravel-oauth2-smartrecruiters
=======================================

[](#krdineshlaravel-oauth2-smartrecruiters)

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

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

[](#installation)

The preferred method of installation is via [Packagist](https://packagist.org/packages/krdinesh/laravel-oauth2-smartrecruiters) 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-smartrecruiters
```

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

```
Krdinesh\Laravel\OAuth2\SmartRecruiters\SmartRecruitersServiceProvider::class
```

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

```
'SmartRecruiters' => Krdinesh\Laravel\OAuth2\SmartRecruiters\Facades\SmartRecruiters::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/smartrecruiters.php`.

Examples
--------

[](#examples)

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

```
$authUrl = SmartRecruiters::authorize([], function ($url, $provider) use ($request) {
    $request->session()->put('smartrecruitersState', $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('smartrecruitersState')) {
    abort(400, 'Invalid state');
}

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

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

$token->getToken();
```

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

[](#copyright-and-license)

The krdinesh/laravel-oauth2-smartrecruiters 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-smartrecruiters/blob/master/LICENSE) for more information.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3195d ago

### Community

Maintainers

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

---

Top Contributors

[![rsysdinesh](https://avatars.githubusercontent.com/u/15073907?v=4)](https://github.com/rsysdinesh "rsysdinesh (35 commits)")

---

Tags

laraveloauth2Laravel 5.2smartrecruiters

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5752.3M18](/packages/directorytree-ldaprecord-laravel)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[webfox/laravel-xero-oauth2

A Laravel integration for Xero using the Oauth 2.0 spec

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

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

6783.6k6](/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)
