PHPackages                             gertjanroke/users - 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. gertjanroke/users

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

gertjanroke/users
=================

users

1.1.0(10y ago)011MITPHPPHP &gt;=5.5.9

Since Sep 29Pushed 9y ago1 watchersCompare

[ Source](https://github.com/GertjanRoke/users)[ Packagist](https://packagist.org/packages/gertjanroke/users)[ Docs](https://github.com/gertjanroke/users)[ RSS](/packages/gertjanroke-users/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (4)Versions (28)Used By (0)

Users
=====

[](#users)

User manager with roles (single and multiple)

Install
-------

[](#install)

```
composer require gertjanroke/users
```

After install
-------------

[](#after-install)

#### ServiceProvider

[](#serviceprovider)

Add the following line to "config/app.php"

at "providers":

```
Gertjanroke\Users\UsersServiceProvider::class,
Collective\Html\HtmlServiceProvider::class,
```

And at "aliases":

```
'Form'      => Collective\Html\FormFacade::class,
'Html'      => Collective\Html\HtmlFacade::class,
```

#### Creating the files

[](#creating-the-files)

Run the following command:

```
php artisan vendor:publish
```

#### Migration

[](#migration)

Run the command:

```
php artisan migrate
```

#### Middleware

[](#middleware)

Add the following lines to the '$routeMiddleware' array in the file 'App/Http/Kernel.php'

```
'onlyAdmin' => \Gertjanroke\Users\Http\Middleware\IfAdmin::class,
```

If you go to the user index you first need a role that sign in the config file

#### Database Seed

[](#database-seed)

If you want to at basic roles, do the following thinks.

Add to your 'DatabaseSeeder.php' file in the 'database/seeds' folder

```
$this->call(RoleTableSeeder::class);
$this->call(RoleUserTableSeeder::class);
```

After that run the next command:

```
php artisan db:seed
```

\####### Or if you don't want to do that run the following commands:

```
first: php artisan db:seed --class=RoleTableSeeder
second: php artisan db:seed --class=RoleUserTableSeeder
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity68

Established project with proven stability

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

Total

27

Last Release

3674d ago

Major Versions

0.2.1 → 1.0.02016-03-11

PHP version history (2 changes)0.0.1PHP &gt;=5.3.0

1.0.0PHP &gt;=5.5.9

### Community

Maintainers

![](https://www.gravatar.com/avatar/8ab268dd9dc85846a497980d67527038e64f692e579fdad486c79a9ecad5ce93?d=identicon)[GertjanRoke](/maintainers/GertjanRoke)

---

Tags

rolesUsers

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gertjanroke-users/health.svg)

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

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

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

Laravel Authorization package.

294.8k1](/packages/arcanedev-laravel-auth)

PHPackages © 2026

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