PHPackages                             dorukyy/loginx - 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. dorukyy/loginx

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

dorukyy/loginx
==============

A new authentication system for Laravel

023PHP

Since Oct 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/dorukyy/Loginx)[ Packagist](https://packagist.org/packages/dorukyy/loginx)[ RSS](/packages/dorukyy-loginx/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

[![GitHub last commit](https://camo.githubusercontent.com/b6da37c8423039c57aa6ff807840e592d5b9e5b04617e00123b627362187e235/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f646f72756b79792f6c6f67696e78)](https://camo.githubusercontent.com/b6da37c8423039c57aa6ff807840e592d5b9e5b04617e00123b627362187e235/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f646f72756b79792f6c6f67696e78)[![GitHub Release](https://camo.githubusercontent.com/00532cd382b45b42939f90e20f8f9fa8e2e4973bda7a5f348343fd66d857093e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646f72756b79792f6c6f67696e78)](https://camo.githubusercontent.com/00532cd382b45b42939f90e20f8f9fa8e2e4973bda7a5f348343fd66d857093e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646f72756b79792f6c6f67696e78)[![Packagist Downloads](https://camo.githubusercontent.com/51ed8097c1549eb143dacae6b1b1c711ae265a1e20a6c27a68bcf8a840550e1d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646f72756b79792f6c6f67696e78)](https://camo.githubusercontent.com/51ed8097c1549eb143dacae6b1b1c711ae265a1e20a6c27a68bcf8a840550e1d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646f72756b79792f6c6f67696e78)[![GitHub issues](https://camo.githubusercontent.com/871c7c43b34a28e78f7bc6c199615ca54d15830bbcc753c53cc5c88bfc610256/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f646f72756b79792f6c6f67696e78)](https://camo.githubusercontent.com/871c7c43b34a28e78f7bc6c199615ca54d15830bbcc753c53cc5c88bfc610256/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f646f72756b79792f6c6f67696e78)[![GitHub pull requests](https://camo.githubusercontent.com/4f62c90af2584afa72b4d5d47525a1fd2a4091070be63bef189b5487522eecf7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d70722f646f72756b79792f6c6f67696e78)](https://camo.githubusercontent.com/4f62c90af2584afa72b4d5d47525a1fd2a4091070be63bef189b5487522eecf7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d70722f646f72756b79792f6c6f67696e78)

[![Laravel](https://camo.githubusercontent.com/8da5f7c3dda92486b2936690fd6c6aa729c76cbc663e79afdcde901cb4aac52e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d382e782d6f72616e6765)](https://camo.githubusercontent.com/8da5f7c3dda92486b2936690fd6c6aa729c76cbc663e79afdcde901cb4aac52e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d382e782d6f72616e6765)[![PHP](https://camo.githubusercontent.com/c87cb93190f206801a61da2d3cbe6d99ab66fd0d04b931da5e0f793c5f4599d4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e332532422d626c7565)](https://camo.githubusercontent.com/c87cb93190f206801a61da2d3cbe6d99ab66fd0d04b931da5e0f793c5f4599d4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e332532422d626c7565)[![GitHub](https://camo.githubusercontent.com/9b8f507d6209a1631fb964dbe70193fd3e3bf918b82d26ff221e514910efad57/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f646f72756b79792f6c6f67696e78)](https://camo.githubusercontent.com/9b8f507d6209a1631fb964dbe70193fd3e3bf918b82d26ff221e514910efad57/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f646f72756b79792f6c6f67696e78)

packagist: [dorukyy/loginx](https://packagist.org/packages/dorukyy/loginx)

Introduction
============

[](#introduction)

This is a simple login system that uses a database to store user information for laravel. Everything needed for a login system is included in this package. You can use this package to create an Authentication system for your project. This package is not suitable for use in large projects. It is a simple package that can be used in small projects. If you want to use it in a large project, you can develop it further.

Requirements
============

[](#requirements)

- Laravel 8.x
- PHP 7.3 or higher

Installation
============

[](#installation)

You can install the package via composer:

```
composer require dorukyy/loginx:dev-main
```

The package will automatically register itself.

Features
========

[](#features)

- Login /w Email, Username or Phone
- Register
- Ip Blocking
- Timeout when failed attempts
- Auto-block IP address after trying to access different accounts
- Password requirements
- User blockable
- User referral system
- Recaptcha
- User roles
- User permissions

Configuration
=============

[](#configuration)

You can change the configuration of the package by publishing the configuration file.

```
php artisan vendor:publish --provider="dorukyy\loginx\LoginxServiceProvider"
```

Add traits to your User model.

```
use dorukyy\loginx\Traits\LoginxUser;
use dorukyy\loginx\Models\LoginxUser as LoginxUserModel;

class User extends Authenticatable
{
    use LoginxReferral,Loginx,LoginxApiKey;

}
```

run the following command

```
php artisan loginx:setup
```

Almost everything in the package can be editable from database. You can change the configuration of the package by changing the values in the configuration file.

Usage
=====

[](#usage)

Variables
---------

[](#variables)

- "AUTO\_BLOCK\_IP\_DURATION\_MIN" : The duration of the IP block in minutes.
- "AUTO\_BLOCK\_IP\_WHEN\_FAILED\_LOGINS\_DIFFERENT\_ACCOUNT" : If the user tries to log in with different accounts, loginx will block the IP Address.
- "AUTO\_BLOCK\_IP\_WHEN\_FAILED\_LOGINS\_DIFFERENT\_ACCOUNT\_COUNT" : The number of different accounts that the user can try to log in with.
- "AUTO\_BLOCK\_IP\_WHEN\_FAILED\_LOGINS\_DIFFERENT\_ACCOUNT\_IN\_SECS" : The duration of trying to log in with different accounts in seconds.
- "CHECK\_IP\_BLOCK" : If the IP block is enabled.
- "IS\_USERS\_BLOCKABLE" : If the user is blockable.
- "LOGIN\_WITH\_EMAIL" : If the user can log in with email.
- "LOGIN\_WITH\_USERNAME" : If the user can log in with username.
- "LOGIN\_WITH\_PHONE" : If the user can log in with phone.
- "PASSWORD\_MAX\_LEN" : The maximum length of the password.
- "PASSWORD\_MIN\_LEN" : The minimum length of the password.
- "PASSWORD\_REQ\_NUMBER" : If the password requires a number.
- "PASSWORD\_REQ\_SPECIAL" : If the password requires a special character.
- "PASSWORD\_REQ\_UPPER\_CASE" : If the password requires an uppercase letter.
- "TIMEOUT\_AFTER\_X\_TRY" : The number of failed login attempts before the timeout.
- "TIMEOUT\_IN\_X\_SECS" : The duration within which the user can fail to log in x times.
- "TIMEOUT\_DURATION" : The duration of the timeout in seconds. // Default 900 = 5 minutes

Disclaimer
==========

[](#disclaimer)

This package is not suitable for use in large projects. It is a simple package that can be used in small projects. If you want to use it in a large project, you can develop it further. Also using this package requires table and model changes. Using this package will overwrite your User model and create a new table. If you want to use this package, you should be aware of these changes.

Contributing
============

[](#contributing)

If you have any ideas or suggestions to improve the package, please let me know. Feel free to contribute to the package.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

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/15295347f1c704af136fc1d7ce9956a4499a4da1e8bb9a13d7a9f32fdedcd34f?d=identicon)[dorukyy](/maintainers/dorukyy)

---

Top Contributors

[![dorukyy](https://avatars.githubusercontent.com/u/59176827?v=4)](https://github.com/dorukyy "dorukyy (43 commits)")

---

Tags

authenticationlaravellaravel-packageloginlogin-systemphp

### Embed Badge

![Health badge](/badges/dorukyy-loginx/health.svg)

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

###  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)
