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

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

cerbero/auth
============

Laravel module to implement the authentication system into your applications.

1.6.4(10y ago)492002MITPHPPHP &gt;=5.3.0

Since Apr 29Pushed 10y ago6 watchersCompare

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

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

[![](https://camo.githubusercontent.com/20949a6f25757a07771b6d0dfab7557266d1752446862f8f73f1aaef09b226dc/687474703a2f2f7331372e706f7374696d672e6f72672f77683778356d356d332f313433303033333637335f6c6f636b5f6d696e692e6a7067 "Auth")](https://camo.githubusercontent.com/20949a6f25757a07771b6d0dfab7557266d1752446862f8f73f1aaef09b226dc/687474703a2f2f7331372e706f7374696d672e6f72672f77683778356d356d332f313433303033333637335f6c6f636b5f6d696e692e6a7067)

Auth
====

[](#auth)

[![Author](https://camo.githubusercontent.com/73e6f53653e58136b44a6406e113f7d984da8b77f44227e0159538d0a16061db/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d406365726265726f39302d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/cerbero90)[![Build Status](https://camo.githubusercontent.com/703ac558e6f522003114b1d3c3fb72942ce96566815620024e7043a300687110/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6365726265726f39302f417574682f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/cerbero90/auth)[![Latest Version](https://camo.githubusercontent.com/469a17b1002eb0c0f71f9734103ece990c8cf842cd92c0a1b4e3a6369b94cdf8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6365726265726f2f417574682e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://packagist.org/packages/cerbero/auth)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Code Climate](https://camo.githubusercontent.com/b14a1ae709f133880f051a857d3c360b70688cf8857f308620590e5ab7224551/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f6365726265726f39302f417574682e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/cerbero90/auth)[![Quality Score](https://camo.githubusercontent.com/ace7f25f80af5a294ba33883668f9de29adfeefd05bf7181e384e9dd3c3fa1ed/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6365726265726f39302f617574682e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/cerbero90/auth)[![Gratipay](https://camo.githubusercontent.com/61e083b9eab13e783171ad3a7d5708d9e13f82a5c3a47dd2defea5d43bee49b5/68747470733a2f2f696d672e736869656c64732e696f2f67726174697061792f6365726265726f2e7376673f7374796c653d666c61742d737175617265)](https://gratipay.com/cerbero/)

[![SensioLabsInsight](https://camo.githubusercontent.com/3bd07a642276ae691e08394df86775e6a7761d9aa7db7e57ba0727b913fdbd0a/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f35366664306662392d323964392d343233612d396363392d3630663030613162333336372f6269672e706e67)](https://insight.sensiolabs.com/projects/56fd0fb9-29d9-423a-9cc9-60f00a1b3367)

Auth is a Laravel package to quickly implement the authentication system into your applications, avoiding you to reinvent the wheel every time you start a new project and letting you customize every single aspect of the process.

This package is intended to be a more customizable alternative to the authentication system shipped by Laravel out of the box and also includes some security features like honeypot and login throttling.

Features
--------

[](#features)

List of features included in this package:

- Login
- Registration
- Password reset
- Logout
- [Full customization](https://github.com/cerbero90/Auth/blob/master/config/_auth.php)
- CSRF protection
- Honeypot trap
- Login throttling
- Event dispatching

Install
-------

[](#install)

Run this command in your application root:

```
composer require cerbero/auth

```

Add the service provider to the `providers` list in **config/app.php**:

```
Cerbero\Auth\AuthServiceProvider::class,
```

Add the following route middleware in **app/Http/Kernel.php**:

```
'honeypot' => \Cerbero\Auth\Http\Middleware\Honeypot::class,
```

And then run these two commands in your terminal:

```
php artisan vendor:publish --provider="Cerbero\Auth\AuthServiceProvider”
php artisan migrate

```

Now you have the database migrated with the **users** table and can customize the behavior of the authentication system by editing the file **config/\_auth.php** as well as modify/translate the messages in **resources/lang/packages**.

Finally, in order to display custom messages to the users, add the `DisplaysExceptions` trait to your exceptions handler:

```
use Cerbero\Auth\Exceptions\DisplaysExceptions;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;

class Handler extends ExceptionHandler {

	use DisplaysExceptions;

	public function render($request, Exception $e)
	{
		if($printable = $this->displayExceptions($e)) return $printable;

		return parent::render($request, $e);
	}

}

```

So now you can display the custom messages in your views:

```
@if ($error = session('error'))
	{{ $error }}
@elseif ($success = session('success'))
	{{ $success }}
@endif

```

Events
------

[](#events)

All authentication processes are preceded and followed by events to provide an easy way to extend the package functionalities. The following list shows all the available events:

- auth.login.start
- auth.login.end
- auth.logout.start
- auth.logout.end
- auth.register.start
- auth.register.end
- auth.recover.start
- auth.recover.end
- auth.reset.start
- auth.reset.end

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~13 days

Total

19

Last Release

3794d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/596523?v=4)[Matteo Picciolini](/maintainers/cerbero)[@cerbero](https://github.com/cerbero)

---

Top Contributors

[![ChristianGiupponi](https://avatars.githubusercontent.com/u/1614796?v=4)](https://github.com/ChristianGiupponi "ChristianGiupponi (2 commits)")[![bobbybouwmann](https://avatars.githubusercontent.com/u/5872362?v=4)](https://github.com/bobbybouwmann "bobbybouwmann (1 commits)")[![rhynodesigns](https://avatars.githubusercontent.com/u/2198266?v=4)](https://github.com/rhynodesigns "rhynodesigns (1 commits)")

---

Tags

laravelauthAuthenticationloginregistrationHoneypotthrottling

### Embed Badge

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

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

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

8359.8M53](/packages/php-open-source-saver-jwt-auth)[auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2745.0M3](/packages/auth0-login)[awes-io/auth

Laravel Authentication package with built-in two-factor (Authy) and social authentication (Socialite).

3826.7k1](/packages/awes-io-auth)[alajusticia/laravel-logins

Session management in Laravel apps, user notifications on new access, support for multiple separate remember tokens, IP geolocation, User-Agent parser

2011.0k](/packages/alajusticia-laravel-logins)[teresko/palladium

User authentication and registration component

4414.2k](/packages/teresko-palladium)

PHPackages © 2026

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