PHPackages                             colearn/auth - 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. colearn/auth

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

colearn/auth
============

Colearn custom rpc auth!

1.0.0(4y ago)01MITPHPPHP &gt;=7.2

Since Nov 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/hieudd92/colearn-auth)[ Packagist](https://packagist.org/packages/colearn/auth)[ RSS](/packages/colearn-auth/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Colearn Rpc Custom Authentication
=================================

[](#colearn-rpc-custom-authentication)

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

[](#installation)

Install via composer

```
composer require colearn/auth
```

### Publish package assets

[](#publish-package-assets)

```
php artisan vendor:publish --provider="CoLearn\Auth\Providers\AuthServiceProvider"
```

Config .env file
----------------

[](#config-env-file)

```
RPC_AUTH_QUEUE=
RPC_AUTH_URL=
RPC_AUTH_METHOD=

```

Configure Auth guard
--------------------

[](#configure-auth-guard)

Inside the **config/auth.php** file you will need to make a few changes to configure Laravel to use the jwt guard to power your application authentication.

Make the following changes to the file:

```
'guards' => [
    'rpc' => [
        'driver' => 'rpc'
    ]
]

```

Add some basic authentication routes
------------------------------------

[](#add-some-basic-authentication-routes)

First let's add some routes in **routes/api.php** as follows:

```
Route::group([
	'prefix' => '/rpc',
	'middleware' => 'auth:rpc'
], function () {
	Route::post('auth-check', 'AuthController@rpcAuthCheck');
});

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

1651d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bbce43cf015da1c3d9827a7ab062586c446a6df15c1e3c3092e11d1c17541807?d=identicon)[damhieu92](/maintainers/damhieu92)

---

Top Contributors

[![hieudd92](https://avatars.githubusercontent.com/u/13128948?v=4)](https://github.com/hieudd92 "hieudd92 (1 commits)")

---

Tags

laravelauth

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/colearn-auth/health.svg)

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

###  Alternatives

[orchestra/auth

Auth Component for Orchestra Platform

24108.5k3](/packages/orchestra-auth)[codebot/entrust

This package provides a flexible way to add Role-based Permissions to Laravel

1596.6k](/packages/codebot-entrust)[ingria/laravel-x509-auth

Laravel 5 Client Certificate auth middleware

375.6k](/packages/ingria-laravel-x509-auth)[setiawanhu/sanctum-auth

Laravel package for generating user authentication feature using Laravel Sanctum

132.8k](/packages/setiawanhu-sanctum-auth)

PHPackages © 2026

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