PHPackages                             geeklopers/roles - 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. geeklopers/roles

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

geeklopers/roles
================

Roles and permissions in Laravel 5.2

1748PHP

Since Jan 21Pushed 9y ago1 watchersCompare

[ Source](https://github.com/geeklopers/roles)[ Packagist](https://packagist.org/packages/geeklopers/roles)[ RSS](/packages/geeklopers-roles/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Roles And Permissions For Laravel 5
===================================

[](#roles-and-permissions-for-laravel-5)

Powerful package for handling roles and permissions in Laravel 5 (5.\*).

Instalacion
-----------

[](#instalacion)

Paquete hecho por geeklopers, con base de romanbican/roles. Para instalarlo solo son los siguientes pasos.

### Composer

[](#composer)

Agrega el paquete al archivo de Composer (`composer.json`).

```
{
    "require": {
        "php": ">=5.5.9",
        "laravel/framework": "5.1.*",
        "geeklopers/roles": "dev-master"
    }
}
```

Ejecuta el siguiente comando en la terminal.

```
composer update

```

### Service Provider

[](#service-provider)

Agrega el paquete a la aplicacion en los service providers ( `config/app.php` ).

```
'providers' => [

    /*
     * Laravel Framework Service Providers...
     */
    Illuminate\Foundation\Providers\ArtisanServiceProvider::class,
    Illuminate\Auth\AuthServiceProvider::class,
    ...

    /**
     * Third Party Service Providers...
     */
    Geeklopers\Roles\RolesServiceProvider::class,

],
```

### Configuracion y Migracion

[](#configuracion-y-migracion)

Agrega la configuracion y la migracion a la aplicacion, ejecuta los siguientes comandos en la terminar.

```
php artisan vendor:publish --provider="Geeklopers\Roles\RolesServiceProvider" --tag=config
php artisan vendor:publish --provider="Geeklopers\Roles\RolesServiceProvider" --tag=migrations

```

Luego ejecuta la migracion.

```
php artisan migrate

```

> Este paquete tiene su propio modelo para usuarios. Borra las migraciones de laravel y deberia estar todo listo para trabajar.

### UsuariosRolesPermisos Trait y Contract

[](#usuariosrolespermisos-trait-y-contract)

Implementa `UsuariosRolesPermisos` trait y `UsuariosRolesPermisos` contract en el modelo de usuarios si lo quieres cambiar.

```
use Geeklopers\Roles\Traits\UsuariosRolesPermisos;
use Geeklopers\Roles\Contracts\UsuariosRolesPermisos as UsuariosRolesPermisosContract;

class User extends Model implements AuthenticatableContract, UsuariosRolesPermisosContract
{
    use Authenticatable, UsuariosRolesPermisos;
```

And that's it!

Config File
-----------

[](#config-file)

You can change connection for models, slug separator, models path and there is also a handy pretend feature. Have a look at config file for more information.

More Information
----------------

[](#more-information)

For more information, please have a look at [UsuariosRolesPermisos](https://github.com/romanbican/roles/blob/master/src/Bican/Roles/Contracts/UsuariosRolesPermisos.php) contract.

License
-------

[](#license)

This package is free software distributed under the terms of the MIT license.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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://avatars.githubusercontent.com/u/25230402?v=4)[Geeklopers](/maintainers/geeklopers)[@geeklopers](https://github.com/geeklopers)

---

Top Contributors

[![efracuadras](https://avatars.githubusercontent.com/u/6364522?v=4)](https://github.com/efracuadras "efracuadras (20 commits)")[![geeklopers](https://avatars.githubusercontent.com/u/25230402?v=4)](https://github.com/geeklopers "geeklopers (5 commits)")

### Embed Badge

![Health badge](/badges/geeklopers-roles/health.svg)

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

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.2M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

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