{"id":26358925,"url":"https://github.com/dorukyy/loginx","last_synced_at":"2026-01-15T22:34:46.363Z","repository":{"id":251361241,"uuid":"837201124","full_name":"dorukyy/Loginx","owner":"dorukyy","description":"A new Authentication package for Laravel","archived":false,"fork":false,"pushed_at":"2024-10-03T10:39:20.000Z","size":16996,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-22T08:49:00.165Z","etag":null,"topics":["authentication","laravel","laravel-package","login","login-system","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dorukyy.png","metadata":{"files":{"readme":"README.MD","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-02T12:33:01.000Z","updated_at":"2024-10-03T10:39:24.000Z","dependencies_parsed_at":"2024-08-02T13:52:46.437Z","dependency_job_id":null,"html_url":"https://github.com/dorukyy/Loginx","commit_stats":null,"previous_names":["dorukyy/loginx"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dorukyy%2FLoginx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dorukyy%2FLoginx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dorukyy%2FLoginx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dorukyy%2FLoginx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dorukyy","download_url":"https://codeload.github.com/dorukyy/Loginx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243893886,"owners_count":20364916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","laravel","laravel-package","login","login-system","php"],"created_at":"2025-03-16T15:58:18.556Z","updated_at":"2026-01-15T22:34:46.325Z","avatar_url":"https://github.com/dorukyy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n![GitHub last commit](https://img.shields.io/github/last-commit/dorukyy/loginx)\n![GitHub Release](https://img.shields.io/github/v/release/dorukyy/loginx)\n![Packagist Downloads](https://img.shields.io/packagist/dt/dorukyy/loginx)\n![GitHub issues](https://img.shields.io/github/issues/dorukyy/loginx)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/dorukyy/loginx)\n\n![Laravel](https://img.shields.io/badge/Laravel-8.x-orange)\n![PHP](https://img.shields.io/badge/PHP-7.3%2B-blue)\n![GitHub](https://img.shields.io/github/license/dorukyy/loginx)\n\npackagist: [dorukyy/loginx](https://packagist.org/packages/dorukyy/loginx)\n\n# Introduction\nThis 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.\n\n# Requirements\n- Laravel 8.x\n- PHP 7.3 or higher\n\n# Installation\nYou can install the package via composer:\n\n```bash\ncomposer require dorukyy/loginx:dev-main\n```\n\nThe package will automatically register itself.\n\n\n# Features\n\n- Login /w Email, Username or Phone\n- Register\n- Ip Blocking\n- Timeout when failed attempts\n- Auto-block IP address after trying to access different accounts\n- Password requirements\n- User blockable\n- User referral system\n- Recaptcha\n- User roles\n- User permissions\n\n# Configuration\nYou can change the configuration of the package by publishing the configuration file.\n\n```bash\nphp artisan vendor:publish --provider=\"dorukyy\\loginx\\LoginxServiceProvider\"\n```\n\n\nAdd traits to your User model.\n\n```php\nuse dorukyy\\loginx\\Traits\\LoginxUser;\nuse dorukyy\\loginx\\Models\\LoginxUser as LoginxUserModel;\n\n\nclass User extends Authenticatable\n{\n    use LoginxReferral,Loginx,LoginxApiKey;\n\n}\n\n```\n\nrun the following command\n\n```bash\nphp artisan loginx:setup\n```\n\nAlmost 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.\n\n# Usage\n## Variables\n- \"AUTO_BLOCK_IP_DURATION_MIN\" : The duration of the IP block in minutes.\n- \"AUTO_BLOCK_IP_WHEN_FAILED_LOGINS_DIFFERENT_ACCOUNT\" : If the user tries to log in with different accounts, loginx will block the IP Address.\n- \"AUTO_BLOCK_IP_WHEN_FAILED_LOGINS_DIFFERENT_ACCOUNT_COUNT\" : The number of different accounts that the user can try to log in with.\n- \"AUTO_BLOCK_IP_WHEN_FAILED_LOGINS_DIFFERENT_ACCOUNT_IN_SECS\" : The duration of trying to log in with different accounts in seconds.\n- \"CHECK_IP_BLOCK\" : If the IP block is enabled.\n- \"IS_USERS_BLOCKABLE\" : If the user is blockable.\n- \"LOGIN_WITH_EMAIL\" : If the user can log in with email.\n- \"LOGIN_WITH_USERNAME\" : If the user can log in with username.\n- \"LOGIN_WITH_PHONE\" : If the user can log in with phone.\n- \"PASSWORD_MAX_LEN\" : The maximum length of the password.\n- \"PASSWORD_MIN_LEN\" : The minimum length of the password.\n- \"PASSWORD_REQ_NUMBER\" : If the password requires a number.\n- \"PASSWORD_REQ_SPECIAL\" : If the password requires a special character.\n- \"PASSWORD_REQ_UPPER_CASE\" : If the password requires an uppercase letter.\n- \"TIMEOUT_AFTER_X_TRY\" : The number of failed login attempts before the timeout.\n- \"TIMEOUT_IN_X_SECS\" : The duration within which the user can fail to log in x times.\n- \"TIMEOUT_DURATION\" : The duration of the timeout in seconds. // Default  900 = 5 minutes\n\n\n# Disclaimer\nThis 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.\n\n# Contributing\nIf you have any ideas or suggestions to improve the package, please let me know. Feel free to contribute to the package.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdorukyy%2Floginx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdorukyy%2Floginx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdorukyy%2Floginx/lists"}