PHPackages                             light-it-labs/lightit-auth-laravel - 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. light-it-labs/lightit-auth-laravel

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

light-it-labs/lightit-auth-laravel
==================================

A comprehensive authentication package for Laravel projects, designed to streamline the implementation of various authentication strategies. This package supports JWT-based authentication, Google SSO, Laravel Sanctum, 2FA, OTP, and role-permission systems with standardized examples for seamless integration into your projects.

1.2.0(1mo ago)316↓50%[2 PRs](https://github.com/Light-it-labs/lightit-auth-laravel/pulls)MITPHPPHP ^8.4CI passing

Since Jan 9Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/Light-it-labs/lightit-auth-laravel)[ Packagist](https://packagist.org/packages/light-it-labs/lightit-auth-laravel)[ Docs](https://github.com/light-it-labs/lightit-auth-laravel)[ GitHub Sponsors]()[ RSS](/packages/light-it-labs-lightit-auth-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (30)Versions (20)Used By (0)

[![](https://camo.githubusercontent.com/314ed52c0da0618946e8398ce98e4f1f54edae05c225fbc26c3666dd98e9c668/68747470733a2f2f6c6967687469742e696f2f696d616765732f4c6f676f5f707572706c652e737667)](https://lightit.io)

Laravel Auth Package
====================

[](#laravel-auth-package)

Laravel Auth Package simplifies authentication, authorization, roles and permissions setup for Laravel applications. Supporting the following packages

Contents
--------

[](#contents)

- [Installation](#installation)
- [JWT](docs/jwt.md)
- [Sanctum](docs/sanctum.md)
- [Google SSO](docs/google-sso.md)
- [Google 2FA](docs/google-2fa.md)
- [Roles &amp; Permissions](docs/permission.md)
- [OTP](docs/otp.md)
- [Forgot Password](docs/forgot-password.md)
- [Credits](#credits)

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

[](#installation)

Important

This package is based on and tightly coupled with the Light-it Laravel Boilerplate.
It assumes conventions like:

- Main namespace: `Lightit`
- Specific file paths
- Custom exceptions structure

Keep this in mind if you plan to integrate it into a different project.

First, add the repository to your `composer.json`:

```
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/Light-it-labs/lightit-auth-laravel.git"
        }
    ]
}
```

Then install the package via Composer:

```
composer require light-it-labs/lightit-auth-laravel
```

Once installed, run the setup command:

```
php artisan auth:setup
```

If you are using Laravel Sail, you can run:

```
./vendor/bin/sail artisan auth:setup
```

This command will guide you through the configuration of your authentication driver(s), Two-Factor Authentication (2FA), and/or Role and Permission system.

---

Changelog
---------

[](#changelog)

For recent changes, see the [CHANGELOG](CHANGELOG.md).

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Sergio Ojeda](https://github.com/sojeda)
- [Gianfranco Rocco](https://github.com/gianfranco-rocco)
- [Tomás Sueldo](https://github.com/tomisueldo)
- [Martín Silva](https://github.com/Tincho44)
- [Ezequiel Flores](https://github.com/ezef)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance90

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~59 days

Recently: every ~64 days

Total

6

Last Release

53d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/43c1b01d111613ace208748153922a7e78e62534255b18b787ac041a7eff7ca0?d=identicon)[soj3da](/maintainers/soj3da)

---

Top Contributors

[![tomisueldo](https://avatars.githubusercontent.com/u/192233932?v=4)](https://github.com/tomisueldo "tomisueldo (21 commits)")[![dwaldeck-light-it](https://avatars.githubusercontent.com/u/201782955?v=4)](https://github.com/dwaldeck-light-it "dwaldeck-light-it (8 commits)")[![sojeda](https://avatars.githubusercontent.com/u/17851841?v=4)](https://github.com/sojeda "sojeda (6 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![fabrizioprida](https://avatars.githubusercontent.com/u/252029872?v=4)](https://github.com/fabrizioprida "fabrizioprida (3 commits)")[![carmela-lightit](https://avatars.githubusercontent.com/u/236386904?v=4)](https://github.com/carmela-lightit "carmela-lightit (2 commits)")[![gianfranco-rocco](https://avatars.githubusercontent.com/u/110541583?v=4)](https://github.com/gianfranco-rocco "gianfranco-rocco (2 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")[![Juan2418](https://avatars.githubusercontent.com/u/53418904?v=4)](https://github.com/Juan2418 "Juan2418 (1 commits)")[![FranRossi](https://avatars.githubusercontent.com/u/65981860?v=4)](https://github.com/FranRossi "FranRossi (1 commits)")[![ezef](https://avatars.githubusercontent.com/u/7827302?v=4)](https://github.com/ezef "ezef (1 commits)")

---

Tags

phpjwtlaravelotpauth2fasanctumLaravel Authtwo factor authlaravel-authenticationroles-and-permissionsLight-it Labslightitgoogle sso

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/light-it-labs-lightit-auth-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/light-it-labs-lightit-auth-laravel/health.svg)](https://phpackages.com/packages/light-it-labs-lightit-auth-laravel)
```

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

8359.8M53](/packages/php-open-source-saver-jwt-auth)[imanghafoori/laravel-masterpass

A minimal yet powerful package to help you easily impersonate your users.

367244.1k](/packages/imanghafoori-laravel-masterpass)[ellaisys/aws-cognito

AWS Cognito package that allows Auth and other related features using the AWS SDK for PHP

120220.7k1](/packages/ellaisys-aws-cognito)

PHPackages © 2026

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