PHPackages                             brightweb/authentication - 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. brightweb/authentication

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

brightweb/authentication
========================

Advanced authentication package for Laravel 11+ and PHP 8+

v1.0.0(1y ago)23MITPHP

Since May 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Bright11/laravel-b-authentication-package)[ Packagist](https://packagist.org/packages/brightweb/authentication)[ RSS](/packages/brightweb-authentication/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

BrightWeb Authentication Package
--------------------------------

[](#brightweb-authentication-package)

Wecome to Brightweb Authentication package for Laravel! This package is designed to streamline the authentication process, providing robust middleware for securing both admin and user-specific routes, as well as customizable authentication views.

Installation
------------

[](#installation)

To install the Brightweb Authentication package, simply use composer:

composer require brightweb/authentication
-----------------------------------------

[](#composer-require-brightwebauthentication)

Migration
---------

[](#migration)

Make sure to run migration or rerun migration for users table to be updated with role.

php artisan migrate

if you have already done the above messioned use

php artisan migrate:fresh

Middleware
----------

[](#middleware)

This package comes with two built-in middleware 'admin' and 'user'.

This middleware can be used to secure different parts of your application based on user roles.

Admin Middleware
----------------

[](#admin-middleware)

To secure your admin pages, use the 'admin' middleware as shown below:

Route::middleware(\['web', 'admin'\])-&gt;group(function () { // Your admin routes here });

User Middleware
---------------

[](#user-middleware)

To secure pages such as the cart page and user profile page, use th 'user' middleware as shown below:

Route::middleware(\['web', 'user'\])-&gt;group(function () { // Your user routes here });

Custom Authentication Views
---------------------------

[](#custom-authentication-views)

The package includes customizable authentication views that you can publish and modify to your application's design requirements. We call this feature 'brightwebauthconfig'. with this, you can change background and text colors in your config/brightwebauthconfig.php after Publishing config files

Publishing config files
-----------------------

[](#publishing-config-files)

php artisan vendor:publish --tag=brightwebauthconfig

Authentication URLS
-------------------

[](#authentication-urls)

This package provides predifined routes for registration,login and logout:

Register: '/register'

Login: '/login'

Logout: '/logout'

These routes are ready to use out of the box, simplifying the setup process.

Conclusion
----------

[](#conclusion)

The Brightweb Authentication package offers a seamless and powerfull solution for managing authentication in your Laravel application.

With easy installation, robust security, middleware, and customizatable views, you can quickly set up a secure and user-frendly authentication system.

Get started today and take your Laravel applications authentication to the next level

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](/https://opensource.org/license/).

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

[](#contributing)

We welcome contributions to enhance this package. Please contact us at [](mailto:chikanwazuo@gmail.com)

Thank you for choosing BrightWeb Authentication! If you have any questions or need support, please feel free to open an issue on GitHub.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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

726d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/867217b5dc6bb67627e1d9b0c4d4a639a67e617cc93c553a2ecd034522b9139a?d=identicon)[Chika](/maintainers/Chika)

---

Top Contributors

[![Bright11](https://avatars.githubusercontent.com/u/34070274?v=4)](https://github.com/Bright11 "Bright11 (14 commits)")

### Embed Badge

![Health badge](/badges/brightweb-authentication/health.svg)

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

###  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)
