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

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

shawnsandy/dash-auth
====================

Dash auth

v0.2.2(8y ago)014[1 issues](https://github.com/shawnsandy/dash-auth/issues)MITPHPPHP ~5.6|~7.0

Since Oct 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/shawnsandy/dash-auth)[ Packagist](https://packagist.org/packages/shawnsandy/dash-auth)[ Docs](https://github.com/shawnsandy/dashauth)[ RSS](/packages/shawnsandy-dash-auth/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)Dependencies (5)Versions (7)Used By (0)

Dashauth
========

[](#dashauth)

Dash Auth is simple way to create &amp; manage [Bouncer](https://github.com/JosephSilber/bouncer) Roles &amp; Abilities.

Install
-------

[](#install)

Via Composer

```
"repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/shawnsandy/dash-auth"
        }
    ],
```

- Add the package to your `composer.json` file as VCS repository, sorry there is no packagist install just yet.

```
$ composer require shawnsandy/dash-auth
```

- From the command prompt run the above to install the package

Usage
-----

[](#usage)

**Quick Start** Laravel 5.5x and greater

```
SUPER_ADMIN_EMAIL=my_super_admin_here@mysite.me
```

- Add the SUPER\_ADMIN\_EMAIL to your .env file with the email of the registered user that will act as your super-admin.

```
php artisan vendor:publish --tag=dashauth-config
```

- From the console use the `--tag` option to publish `config file`

```
   'roles' => [
        'superadmin' => "Super Admin",
        'admin' => "Admin",
        'staff' => "Staff",
        'editor' => "Editor",
        'member' => "Member",
    ],

    'abilities' => [
        'assign_roles' => 'Assign Roles',
        'manage_users' => 'Manage Users',
        'manage_posts' => 'Manage Posts',
        'manage_admin' => 'Manage Site',
        'manage_systems' => 'Manage Systems',
    ],
```

- Edit the config settings (optional), go to `config/dashauth.php`

```
Dashauth::routes();
```

- Add the default dash routes, open `routes\web.php` file and add the above

[![Alt text](/screenshot-auth-setup.jpeg?raw=true)](/screenshot-auth-setup.jpeg?raw=true)

**Setup SuperAdmin Role**

- Set the superadmin email in you `.env` file `SUPERADMIN_EMAIL=youremail@you.com`
- Next go to `yoursite.com/dashauth` and create a super admin
- Manage \\ View privileges `yoursite.com/dashauth/privileges`

**Manage Roles Component**

Add the manage roles component to application passing the user info `$user = User::find(1)`

```
Manage Roles

@component("dashauth::forms.privileges", [ "user" => $user ) ])
@slot('btn_class')  button is-link is-large is-uppercase  @endslot
@endcomponent
```

- Dash auth comes with a simple component to manage roles you can add the component `forms.roles` component to you user record.

[![Alt text](/screenshot-manage-ability.jpeg?raw=true)](/screenshot-manage-ability.jpeg?raw=true)

**Manage Abilities (privileges)**

```
 @component('dashauth::components.privileges')
```

- Assign and remove abilities to/from using the `dashauth::components.privileges` component.

**Larvel 5.4x**

Add the service provider to the config/app.php file

```
"providers" => [
    ShawnSandy\DashAuth\DashAuthServicesProvider::class,
]
```

Add the facade to config/app.php file

```
aliases => [
"Dashauth" => ShawnSandy\DashAuth\DashAuthFacade::class,
]
```

Change log
----------

[](#change-log)

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

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

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

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- \[Shawn Sandy\]\[link-author\]
- \[All Contributors\]\[link-contributors\]

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Every ~23 days

Total

5

Last Release

3080d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/28913?v=4)[Shawn Sandy](/maintainers/shawnsandy)[@shawnsandy](https://github.com/shawnsandy)

---

Top Contributors

[![shawnsandy](https://avatars.githubusercontent.com/u/28913?v=4)](https://github.com/shawnsandy "shawnsandy (115 commits)")

---

Tags

shawnsandydashauth

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M342](/packages/psalm-plugin-laravel)[illuminate/auth

The Illuminate Auth package.

10528.2M1.2k](/packages/illuminate-auth)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M138](/packages/laravel-mcp)[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k108.5M855](/packages/laravel-socialite)[illuminate/routing

The Illuminate Routing package.

1419.2M2.9k](/packages/illuminate-routing)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)

PHPackages © 2026

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