PHPackages                             pribumi/beyondauth - 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. pribumi/beyondauth

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

pribumi/beyondauth
==================

Complete User Auth For Laravel 5.2.x

35PHP

Since Sep 28Pushed 8y ago1 watchersCompare

[ Source](https://github.com/odenktools/beyondauth)[ Packagist](https://packagist.org/packages/pribumi/beyondauth)[ RSS](/packages/pribumi-beyondauth/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Beyond Auth
===========

[](#beyond-auth)

[![SensioLabsInsight](https://camo.githubusercontent.com/e6d0333f41a7d854d4049c0650003496c3667a819a13cf6fa815f258117ccb4a/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f65353034346566622d653130612d346363342d383466372d6532343363613065626336322f736d616c6c2e706e67)](https://insight.sensiolabs.com/projects/e5044efb-e10a-4cc4-84f7-e243ca0ebc62)[![Build Status](https://camo.githubusercontent.com/8d8331758309b641195be921bc2d9c6adf14e02de0771c0071a21281d539abd7/68747470733a2f2f7472617669732d63692e6f72672f6f64656e6b746f6f6c732f6265796f6e64617574682e737667)](https://travis-ci.org/odenktools/beyondauth)[![Dependency Status](https://camo.githubusercontent.com/033e4c8bae5e7c7af5ad2f2619cf800a1fab0cd283751ffdc4257ce4dedf2fcb/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3539636434386666313566306437373066306531393036642f62616467652e7376673f7374796c653d666c61742d737175617265)](https://www.versioneye.com/user/projects/59cd48ff15f0d770f0e1906d)[![StyleCI](https://camo.githubusercontent.com/b914d08369f612b408004585cd1d10c67a5454296a375a5e64e9417e36f954d0/68747470733a2f2f7374796c6563692e696f2f7265706f732f3130343039343333392f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/104094339)[![codecov](https://camo.githubusercontent.com/bc82fd4c99f61ccc92cdd799b03e1632779a2d4359541079c79d74b07768764e/68747470733a2f2f636f6465636f762e696f2f67682f6f64656e6b746f6f6c732f6265796f6e64617574682f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/odenktools/beyondauth)[![PHP-Eye](https://camo.githubusercontent.com/185464ef14694f394c9b41f19c0bbc73d744367180bfd20dc8276ba1b4d0bdf1/68747470733a2f2f7068702d6579652e636f6d2f62616467652f70726962756d692f6265796f6e64617574682f7465737465642e7376673f7374796c653d666c61742d737175617265)](https://php-eye.com/package/pribumi/beyondauth)[![License](https://camo.githubusercontent.com/731336322532696b7dfdc5c9e3c3078b388c0874876208e57fa7973dce980017/68747470733a2f2f706f7365722e707567782e6f72672f70726962756d692f6265796f6e64617574682f6c6963656e7365)](https://packagist.org/packages/pribumi/beyondauth)

What is BeyondAuth? .... tobe continued

Installing Package
==================

[](#installing-package)

```
composer require pribumi/beyondauth
```

Setup
=====

[](#setup)

After updating, add the service provider to the `providers` array in `config/app.php`

```
'providers' => [
	// blahh.. blahhh..
	Pribumi\BeyondAuth\Providers\BeyondAuthServiceProvider::class,
]
```

Also add the aliases to the `aliases` array in `config/app.php`

```
'aliases' => [
	// blahh.. blahhh..
	'BeyondAuth'  => Pribumi\BeyondAuth\Facades\BeyondAuth::class,
]
```

Run command from your console `composer dump-autoload`

Replace code on `guards` array in `config/auth.php` like this

```
'web_admins' => [
	'driver' => 'session',
    'provider' => 'users'
],
```

And also on `providers` array too

```
'users' => [
    'driver' => 'eloquent',
    'model' => Pribumi\BeyondAuth\Models\User::class,
],
```

Change default guard

```
	'defaults' => [
    	'guard' => 'web_admins',
        'passwords' => 'users',
    ]
```

#### Publish BeyondAuth Configuration

[](#publish-beyondauth-configuration)

```
php artisan vendor:publish --provider="Pribumi\BeyondAuth\Providers\BeyondAuthServiceProvider"

composer dumpautoload
```

Migrate
=======

[](#migrate)

Before you test the code, make sure your application can connect to the database then run this `command`

```
php artisan migrate

composer dumpautoload

php artisan db:seed --class=BeyondAuthSeeder
```

Register on Kernel
==================

[](#register-on-kernel)

```
protected $routeMiddleware = [
	// blahh.. blahhh..
	'beyondauth' => \Pribumi\BeyondAuth\Http\Middleware\BeyondMiddleware::class
]
```

Models
======

[](#models)

- ApiKeyUsers
- FieldTypes
- Periode
- Company
- User
- UserActivation
- UserField
- UserFieldGroup
- UserFieldValue
- UserGroup
- UserMenus
- UserPermission

#### Periode Model

[](#periode-model)

```
$periode = new \Pribumi\BeyondAuth\Models\Periode();
$findIdPeriode = $periode->find(3);
echo json_encode($findIdPeriode->usergroups);
```

#### User Model

[](#user-model)

Get `Custom Fields` From Existing User

```
$userfields = \BeyondAuth::users()->find(1)->userfields()->get();
echo json_encode($userfields);
```

Get `Roles` From Existing User

```
$uservalues = \BeyondAuth::users()->find(1)->roles()->get();
echo json_encode($uservalues);
```

Get `Custom Fields Value` From Existing User

```
$uservalues = \BeyondAuth::users()->find(1)->uservalues()->get();
echo json_encode($uservalues);
```

Testing
=======

[](#testing)

Work on progress...

License
=======

[](#license)

The MIT License (MIT)

Copyright (c) 2017 Sean Tymon

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.7% 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/8f7f2a27279f20428dae0a8385089cf61665b9c56e3cae0b5860c35043ffaf00?d=identicon)[moeloet](/maintainers/moeloet)

---

Top Contributors

[![odenktools](https://avatars.githubusercontent.com/u/1627146?v=4)](https://github.com/odenktools "odenktools (43 commits)")[![MYassin16](https://avatars.githubusercontent.com/u/48644477?v=4)](https://github.com/MYassin16 "MYassin16 (1 commits)")

---

Tags

authenticationlaravelphprole-managementuser-management

### Embed Badge

![Health badge](/badges/pribumi-beyondauth/health.svg)

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[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)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

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

PHPackages © 2026

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