PHPackages                             sowork/yauth - 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. sowork/yauth

ActiveLaravel-package[Authentication &amp; Authorization](/categories/authentication)

sowork/yauth
============

laravel rbac package

v0.1(8y ago)030MITPHP

Since Feb 6Pushed 8y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (2)Used By (0)

yauth
=====

[](#yauth)

> larave5 RBAC权限管理，多表用户权限判断

安装
--

[](#安装)

- composer安装 `composer require sowork/yauth dev-master`
- 注册:在`config/app.php`文件中`providers`数组中注册提供者 `Sowork\YAuth\YAuthServiceProvider::class,`，在`config/app.php`文件`aliases`数组中注册`'YAuth' => Sowork\YAuth\YAuthServiceProvider::class,`

资源发布
----

[](#资源发布)

- 默认 `php artisan vendor:publish` 会发布配置文件和数据库迁移文件，单独发布如下。
- 数据库表迁移 `php artisan migrate`
- 如果你不想使用默认yauth的数据库表，或者想基于yauth表进行修改，需要在`AppServiceProvider`的`register`方法中调用`YAuth::ignoreMigrations();`使用`php artisan vendor:publish --tag=yauth-migrations`导出默认迁移表
- 配置文件发布 `php artisan vendor:publish --tag=yauth-config`

中间件
---

[](#中间件)

API调用
-----

[](#api调用)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

3014d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/db837d8ef7a57169e090608ea0e87aa0238d3764f7c0ad0ddd700d5bd53a4adb?d=identicon)[sowork](/maintainers/sowork)

---

Top Contributors

[![sowork](https://avatars.githubusercontent.com/u/15050765?v=4)](https://github.com/sowork "sowork (31 commits)")

---

Tags

laravelrbacyauth

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sowork-yauth/health.svg)

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

###  Alternatives

[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6712.1k2](/packages/hasinhayder-tyro)[orchestra/auth

Auth Component for Orchestra Platform

24108.5k3](/packages/orchestra-auth)[erag/laravel-role-permission

A simple and easy-to-install role and permission management package for Laravel, supporting versions 10.x and 11.x

404.2k](/packages/erag-laravel-role-permission)[phpzen/laravel-rbac

Role based access control for Laravel 5

383.2k](/packages/phpzen-laravel-rbac)[smart-crowd/laravel-rbac

Laravel RBAC implementation.

151.3k](/packages/smart-crowd-laravel-rbac)

PHPackages © 2026

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