PHPackages                             cemleme/cmauth - 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. cemleme/cmauth

ActiveLibrary

cemleme/cmauth
==============

cmauth laravel 5.1.11 rbac

150PHP

Since Dec 3Pushed 10y ago1 watchersCompare

[ Source](https://github.com/cemleme/cmauth2)[ Packagist](https://packagist.org/packages/cemleme/cmauth)[ RSS](/packages/cemleme-cmauth/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

CMAUTH2
-------

[](#cmauth2)

Cmauth2 is a Role Based Access Control Authentication package developed for **Laravel 5.1.11** applications.
You can creating unlimited Groups (Roles) and Permissions and assign your users to Groups.

Afterwards you can use your filters and facades to check if the logged in user has proper permission for the current route / controller / method / view part.

---

### Features:

[](#features)

- Creating and managing Users, Groups (Roles) and Permissions
- Managing login / logout / remember steps
- Permissions checks with filters and facades
- Option to choose different users to have passwords on the system or check credentials through LDAP
- Cmauth admin panel to assign users and permissions to groups

---

### Requirements:

[](#requirements)

- Laravel 5
- PHP ldap extension (if you require LDAP authentication)

---

### Setup:

[](#setup)

In the require key of **composer.json** file add the following

```
"cemleme/cmauth2": "dev-master"

```

Run the Composer update comand

```
$ composer update cemleme/cmauth

```

In your **config/app.php** add **CmauthServiceProvider** to the end of the providers array

```
'providers' => [
    ...
    'Cemleme\Cmauth\CmauthServiceProvider',
],

```

Assign same User model at **config/auth.php**

```
'model' => 'Cemleme\Cmauth\models\User'  //(or \App\User if you extend \Cemleme\Cmauth\models\User)

```

Publish config file **config/cmauth.php** using artisan publish command:

```
php artisan vendor:publish --provider="Cemleme\Cmauth\CmauthServiceProvider"

```

---

### Cmauth Config File:

[](#cmauth-config-file)

- 'mastertemplate' : The template you want to wrap Cmauth admin panel. It looks for @yield('content') at the template page
- 'loginview' =&gt; Your desired login page. Cmauth is compatible with default Laravel 5 login page. You do not need any extra fields
- 'ldap' =&gt; Optional. Set it to true if you want to use LDAP authentication
- 'ldap\_domain' =&gt; Required if 'ldap' =&gt; true. Your LDAP domain name
- 'ldap\_server' =&gt; Required if 'ldap' =&gt; true. IP address of your LDAP server
- 'ldap\_port' =&gt; Required if 'ldap' =&gt; true. Port of your LDAP server

---

### Used Packages:

[](#used-packages)

- [Admin LTE](https://almsaeedstudio.com/)
- [Spatie - Laravel Backup](https://packagist.org/packages/spatie/laravel-backup)
- [Rap2hpoutre - Laravel Log Viewer](https://packagist.org/packages/rap2hpoutre/laravel-log-viewer)

- For log viewer, create "ViewLog" Permission and assign it to desired user. The route is /logs
- For laravel backup, you can publish the config file using php artisan vendor:publish --provider="Spatie\\Backup\\BackupServiceProvider"

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8493619b193cf2d88de7cdcd60eac093efe8da0e3344d764dcd6c54c9ee9b278?d=identicon)[cemleme](/maintainers/cemleme)

---

Top Contributors

[![cemleme](https://avatars.githubusercontent.com/u/5637039?v=4)](https://github.com/cemleme "cemleme (50 commits)")

### Embed Badge

![Health badge](/badges/cemleme-cmauth/health.svg)

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

PHPackages © 2026

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