PHPackages                             hazicms/auth - 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. hazicms/auth

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

hazicms/auth
============

Basic authentication with CRUD for users,roles and permissions.

119PHP

Since May 27Pushed 10y agoCompare

[ Source](https://github.com/hazicms/auth)[ Packagist](https://packagist.org/packages/hazicms/auth)[ RSS](/packages/hazicms-auth/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

AuthBasicMiddleware has the next permissions:

- All user with role 'admin', has all permissions.
- index action: none permission.appear only our resources. all if in 'admin' role.
- create action: need to be 'create.MODEL' permission.
- edit action: need to be 'edit.MODEL' permission and be creator of this resource.
- delete action: need to be 'delete.MODEL' permission and be creator of this resource.

Steps to Get Started
--------------------

[](#steps-to-get-started)

1. Add this package to your composer.json:

    ```
     "require": {
         "hazicms/auth": "dev-master"
     }

    ```
2. Run composer update

    ```
     composer update

    ```
3. Add the ServiceProviders to the providers array in `config/app.php`.

    ```
     'HaziCms\Auth\AuthServiceProvider'

    ```
4. Publish config files for generators, modules and images:

    ```
     php artisan vendor:publish --provider="HaziCms\Generator\Generator\GeneratorServiceProvider"

    ```
5. Add those lines to `app\Http\Kernel.php` file:

    ```
     protected $routeMiddleware = [
         'hazicms.basic' => 'HaziCms\Http\Middleware\AuthBasicMiddleware',
     ];

    ```
6. Add middleware to controller's \_\_construct() method:

    ```
     $this->middleware('hazicms.basic');

    ```
7. You are ready! :-)

Credits
-------

[](#credits)

This module is created by [Aitor Ibañez](https://github.com/aitiba).

**Bugs &amp; Forks are welcomed :)**

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

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/172c6ac4a6f60efd28179ff052d96d224fe9665610c2b85006772e92794a2aa4?d=identicon)[aitiba](/maintainers/aitiba)

---

Top Contributors

[![aitorjs](https://avatars.githubusercontent.com/u/1209012?v=4)](https://github.com/aitorjs "aitorjs (8 commits)")

### Embed Badge

![Health badge](/badges/hazicms-auth/health.svg)

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

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[beatswitch/lock

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)

PHPackages © 2026

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