PHPackages                             durrbar/user-module - 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. durrbar/user-module

ActiveLaravel-module[Authentication &amp; Authorization](/categories/authentication)

durrbar/user-module
===================

Laravel User module for authentication, authorization with Fortify, Sanctum, Socialite and laravel-permission by Spatie

v0.0.1(1y ago)0461MITPHPPHP ^8.2

Since Mar 5Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/durrbar/user-module)[ Packagist](https://packagist.org/packages/durrbar/user-module)[ Docs](https://github.com/durrbar/user-module)[ RSS](/packages/durrbar-user-module/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (2)Used By (1)

User Module for Laravel
=======================

[](#user-module-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/13a9ebe4f269cd71db48fc6ba7cfeb513885ab82cb5582633a084acd70b07484/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f647572726261722f757365722d6d6f64756c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/durrbar/user-module)[![GitHub Tests Action Status](https://camo.githubusercontent.com/7b349df69db598ed4e074e5908145ac7f091226fea347a9d625730a4b4c48679/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f647572726261722f757365722d6d6f64756c652f72756e2d74657374732d4c382e796d6c3f6272616e63683d6d61696e266c6162656c3d5465737473)](https://github.com/durrbar/user-module/actions?query=workflow%3ATests+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/f7435c390f86abd57b46f9e6dd3e7fe26eb55c42e2814836383adf1d5097ac74/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f647572726261722f757365722d6d6f64756c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/durrbar/user-module)

The **User Module** is a powerful and flexible Laravel package designed to streamline user management. It provides essential functionality for managing users, roles, and permissions in Laravel applications.

---

Features
--------

[](#features)

- User authentication (login, registration, password reset)
- Role-based access control (RBAC)
- Permission-based authorization
- API-ready user management endpoints
- Easily extendable and customizable

---

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

[](#installation)

### Requirements

[](#requirements)

- PHP &gt;= 8.2
- Laravel &gt;= 11.0

### Step 1: Install via Composer

[](#step-1-install-via-composer)

```
composer require durrbar/user-module
```

### Step 2: Publish Config and Migrations

[](#step-2-publish-config-and-migrations)

Publish the configuration and migration files using the following command:

```
php artisan durrbar:user-install
```

### Step 3: Run Migrations

[](#step-3-run-migrations)

Run the database migrations to set up the necessary tables:

```
php artisan migrate
```

### Step 4: Configure the Package

[](#step-4-configure-the-package)

Edit the published configuration file located at `config/user-module.php` to customize settings such as default roles and permissions.

---

Usage
-----

[](#usage)

### User Authentication

[](#user-authentication)

The package includes ready-to-use authentication routes for login, registration, and password reset. You can use the following endpoints:

- **POST /login** - Authenticate users
- **POST /register** - Register new users
- **POST /password-reset** - Request a password reset

---

API Documentation
-----------------

[](#api-documentation)

The package includes the following API endpoints:

EndpointMethodDescription`/api/users`GETList all users`/api/users/{id}`GETRetrieve a specific user`/api/users`POSTCreate a new user`/api/users/{id}`PUTUpdate a user's information`/api/users/{id}`DELETEDelete a user---

Testing
-------

[](#testing)

To run tests, use the following command:

```
php artisan test
```

---

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

---

Contributing
------------

[](#contributing)

Contributions are welcome! Please follow these steps:

1. Fork the repository.
2. Create a new feature branch.
3. Commit your changes.
4. Submit a pull request.

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

---

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](LICENSE.md).

---

Support
-------

[](#support)

For issues or feature requests, please open an issue on the [GitHub repository](https://github.com/durrbar/user-module).

---

Credits
-------

[](#credits)

- Author: [Durrbar](https://github.com/durrbar)
- Packagist: [durrbar/user-module](https://packagist.org/packages/durrbar/user-module)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance70

Regular maintenance activity

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

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

439d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2fca7d72786eb232713f9a625180abcaf528d6c6d3c03ed8df3f9acc333121e5?d=identicon)[officialkidmax](/maintainers/officialkidmax)

---

Top Contributors

[![officialkidmax](https://avatars.githubusercontent.com/u/41998473?v=4)](https://github.com/officialkidmax "officialkidmax (40 commits)")

---

Tags

laravelsecurityauthaclpermissionrolespermissionsrbac

### Embed Badge

![Health badge](/badges/durrbar-user-module/health.svg)

```
[![Health](https://phpackages.com/badges/durrbar-user-module/health.svg)](https://phpackages.com/packages/durrbar-user-module)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k89.8M1.0k](/packages/spatie-laravel-permission)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[phpzen/laravel-rbac

Role based access control for Laravel 5

383.2k](/packages/phpzen-laravel-rbac)[wnikk/laravel-access-rules

Simple system of ACR (access control rules) for Laravel, with roles, groups, unlimited inheritance and possibility of multiplayer use.

103.6k1](/packages/wnikk-laravel-access-rules)

PHPackages © 2026

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