PHPackages                             laradevs/authremote - 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. laradevs/authremote

ActiveLibrary

laradevs/authremote
===================

It is a component that allows to carry out and manage the authentication control through OAUTH2.0 for a Laravel application.

v1.1(6y ago)16MITPHPPHP &gt;=7.2CI failing

Since Apr 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/laradevs/authremote)[ Packagist](https://packagist.org/packages/laradevs/authremote)[ RSS](/packages/laradevs-authremote/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)Dependencies (5)Versions (4)Used By (0)

[![](https://avatars2.githubusercontent.com/u/51764637?s=200&v=4)](https://avatars2.githubusercontent.com/u/51764637?s=200&v=4)

AUTH REMOTE
===========

[](#auth-remote)

It is a component that allows to carry out and manage the authentication control through OAUTH2.0 for a Laravel application.

### Installation

[](#installation)

You can install the package via composer :

```
$ composer require laradevs/authremote
```

Next, You must register the service provider (optional) :

```
// config/app.php

'Providers' => [
   // ...
    \LaraDevs\AuthRemote\MainServiceProvider::class,
]
```

Next, you must publish the configuration file to define the OAUTH server credentials:

```
php artisan vendor:publish --provider="LaraDevs\AuthRemote\MainServiceProvider"
```

This is the contents of the published file :

```
return [
    'uri' => env('USER_PROVIDER_REST_URL', ''),
    'name_session_rest' => 'token_oauth',
    'headers' => [],
    'route_not_session'=>'start_route'
];
```

Set your URL Rest in `.env` file :

```
APP_NAME="Laravel"
# ...
USER_PROVIDER_REST_URL=putYourRestURL

```

### Add in Array Services

[](#add-in-array-services)

```
'laravelpassport' => [
        'client_id' => env('LARAVELPASSPORT_KEY','http://YOUR_ROUTE_HOST_SERVER/api/user'),
        'client_secret' => env('LARAVELPASSPORT_SECRET'),
        'redirect' => env('LARAVELPASSPORT_REDIRECT_URI'),
        'host'=> env('LARAVELPASSPORT_HOST')
    ]
```

### Add in Handle Exception in method render

[](#add-in-handle-exception-in-method-render)

```
 if ($exception instanceof \LaraDevs\AuthRemote\RestException) {
            return redirect()->route(config('rest-provider.route_not_session'));
 }
```

### Add in Array Auth

[](#add-in-array-auth)

```
  'providers' => [
        'users' => [
            'driver' => 'rest-users',
            'model' => \LaraDevs\AuthRemote\User::class
        ],
  ]
```

### Route Login &amp; Logout published automatic

[](#route-login--logout-published-automatic)

```
Route::get('/auth-remote/{provider}', '\LaraDevs\AuthRemote\ActionsController@redirectToProvider')->name('laravel_passport');
Route::get('/auth-remote/{provider}/callback', '\LaraDevs\AuthRemote\ActionsController@handleProviderCallback');
Route::post('/auth-remote-logout','\LaraDevs\AuthRemote\ActionsController@logout')->name('laravel_passport.logout');
```

### Add route name for initial route

[](#add-route-name-for-initial-route)

```
Route::get('/', function () {
    return view('welcome');
})->name(config('rest-provider.route_not_session'));
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Every ~0 days

Total

2

Last Release

2224d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d137cbee024defb0122c632ee00a4a593131bf981d559abb9dc807e29aa1f9c8?d=identicon)[eliberio-soft](/maintainers/eliberio-soft)

---

Top Contributors

[![satoblacksato](https://avatars.githubusercontent.com/u/18121577?v=4)](https://github.com/satoblacksato "satoblacksato (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/laradevs-authremote/health.svg)

```
[![Health](https://phpackages.com/badges/laradevs-authremote/health.svg)](https://phpackages.com/packages/laradevs-authremote)
```

###  Alternatives

[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[stechstudio/laravel-zipstream

A fast and simple streaming zip file downloader for Laravel.

4633.7M3](/packages/stechstudio-laravel-zipstream)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[spatie/laravel-export

Create a static site bundle from a Laravel app

646127.9k5](/packages/spatie-laravel-export)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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