PHPackages                             thienkimlove/vauth - 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. thienkimlove/vauth

ActiveLibrary

thienkimlove/vauth
==================

Example auth packages

116PHP

Since Apr 22Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

### Ved Authorization Package

[](#ved-authorization-package)

#### Install

[](#install)

1. Install fresh version of Laravel 5.2
2. Require package `composer require thienkimlove/vauth:dev-master`
3. Add below like to `config/app.php` :

```
Thienkimlove\Vauth\VauthServiceProvider::class,

```

4. Run `php artisan vendor:publish --tag="migrations"  && php artisan migrate && php artisan make:auth`
5. Add in `routes.php`

```
Route::get('example', function () {
    return view('vauth::example');
});

//Route::resource('posts', 'PostsController');
Route::get('index_post', '\thienkimlove\vauth\PostsController@index');

```

Modify `app\User.php` :

```
use Thienkimlove\Vauth\Traits\VauthRoles;

class User extends Authenticatable
{
    use VauthRoles;

```

6. Register one user.
7. Create permission and role and map to user.

```
php artisan tinker
Psy Shell v0.7.2 (PHP 5.6.11-1ubuntu3.1 — cli) by Justin Hileman
>>>$user = App\User::first();
>>> $permission = new Thienkimlove\Vauth\Models\Permission;
=> Thienkimlove\Vauth\Models\Permission {#652}
>>> $permission->name="index_post";
=> "index_post"
>>> $permission->label="view list post";
=> "view list post"
>>> $permission->save();
=> true
>>> $role = new Thienkimlove\Vauth\Models\Role;
=> Thienkimlove\Vauth\Models\Role {#653}
>>> $role->name="manager";
=> "manager"
>>> $role->label="Manager";
=> "Manager"
>>> $role->save();
=> true
>>> $role->addPermission($permission);
=> null
>>> $user->assignRole('manager');
=> [
     "attached" => [
       1,
     ],
     "detached" => [],
     "updated" => [],
   ]
>>> exit

```

8. Browser to /example

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/d612ca3d55907bd300c57f856e559e20a3278536c26bcdca2283e9551b7eb420?d=identicon)[tieungao](/maintainers/tieungao)

### Embed Badge

![Health badge](/badges/thienkimlove-vauth/health.svg)

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

PHPackages © 2026

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