PHPackages                             usermp/laravel-login - 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. usermp/laravel-login

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

usermp/laravel-login
====================

Simple laravel login

113PHP

Since Jun 9Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/usermp/laravel-login)[ Packagist](https://packagist.org/packages/usermp/laravel-login)[ RSS](/packages/usermp-laravel-login/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Login Package
---------------------

[](#laravel-login-package)

This package provides a simple and secure login system for Laravel applications. It includes OTP verification and user authentication using Laravel Passport, with integration for Kavenegar for OTP sending and Sentry for error tracking.

### Installation

[](#installation)

To install the package, follow these steps:

1. Install the package via Composer:

    ```
    composer require usermp/laravel-login:"dev-master"
    ```
2. Add the required environment variables to your `.env` file:

    ```
    # Constants for OTP settings
    OTP_TOKEN_EXPIRE_SECONDS=180
    OTP_TOKEN_NUM_DIGITS=6

    # Kavenegar API settings
    KAVENEGAR_API_KEY=""
    KAVENEGAR_SENDER=""

    # Sentry configuration
    SENTRY_LARAVEL_DSN=""
    SENTRY_TRACES_SAMPLE_RATE=1.0
    ```
3. Add the `LoginServiceProvider` class to the providers array in your `config/app.php` file:

    ```
    'providers' => [
        // Other Service Providers
        Usermp\LaravelLogin\LoginServiceProvider::class,
    ],
    ```
4. Run the migrations to set up the necessary database tables:

    ```
    php artisan migrate
    ```
5. Configure Laravel Passport:

    ```
    php artisan passport:install
    ```

With these steps completed, your Laravel application is now equipped with a secure login system integrated with OTP verification.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/48add354597189247b456142f8384caf8b7dde8d30e48eab47b6a1484ebceecc?d=identicon)[usermp](/maintainers/usermp)

---

Top Contributors

[![usermp](https://avatars.githubusercontent.com/u/39251365?v=4)](https://github.com/usermp "usermp (2 commits)")

### Embed Badge

![Health badge](/badges/usermp-laravel-login/health.svg)

```
[![Health](https://phpackages.com/badges/usermp-laravel-login/health.svg)](https://phpackages.com/packages/usermp-laravel-login)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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