PHPackages                             sws/smartauth - 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. sws/smartauth

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

sws/smartauth
=============

Custom authentication package including registration, login, email verification and more.

05Blade

Since Sep 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/shawon3719/pacakge-custom-auth)[ Packagist](https://packagist.org/packages/sws/smartauth)[ RSS](/packages/sws-smartauth/feed)WikiDiscussions main Synced 4d ago

READMEChangelogDependenciesVersions (6)Used By (0)

SWS Auth
--------

[](#sws-auth)

#### SWS Auth is a Complete Build of Laravel 8 with Email Registration Verification. Built on Bootstrap 4.

[](#sws-auth-is-a-complete-build-of-laravel-8-with-email-registration-verification-built-on-bootstrap-4)

[![Build Status](https://camo.githubusercontent.com/70ca7b14a465e416e5966824c54fb133035793f87f6f41ef79703473bb26630b/68747470733a2f2f7472617669732d63692e6f72672f6a6572656d796b656e6564792f6c61726176656c2d617574682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jeremykenedy/laravel-auth)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

### About

[](#about)

   [![Auth0](https://camo.githubusercontent.com/89f588177fa93320395cc0f6d591da56ba8c9acbf740699a7347ab11e770ef49/68747470733a2f2f63646e2e61757468302e636f6d2f7374796c6567756964652f636f6d706f6e656e74732f312e302e382f6d656469612f6c6f676f732f696d672f62616467652e706e67)](https://camo.githubusercontent.com/89f588177fa93320395cc0f6d591da56ba8c9acbf740699a7347ab11e770ef49/68747470733a2f2f63646e2e61757468302e636f6d2f7374796c6567756964652f636f6d706f6e656e74732f312e302e382f6d656469612f6c6f676f732f696d672f62616467652e706e67)   Laravel 8 with user authentication and registration with email confirmation. Uses official \[Bootstrap 4\](). This also makes full use of Controllers for the routes and templates for the views. Project can be stood up in minutes.  ### Features

[](#features)

#### A [Laravel](https://laravel.com/) 8.x with [Bootstrap](https://getbootstrap.com) 4.x project.

[](#a-laravel-8x-with-bootstrap-4x-project)

Laravel Auth FeaturesBuilt on [Laravel](https://laravel.com/) 8Built on [Bootstrap](https://getbootstrap.com/) 4Uses [MySQL](https://github.com/mysql) Database (can be changed)Uses [Artisan](https://laravel.com/docs/master/artisan) to manage database migration, schema creations, and create/publish page controller templatesDependencies are managed with [COMPOSER](https://getcomposer.org/)Makes use of [Laravel's Soft Delete Structure](https://laravel.com/docs/master/eloquent#soft-deleting)Soft Deleted Users Management System### Installation Instructions

[](#installation-instructions)

1. run :

```
composer require sws/smartauth --v.1.1

```

2. add `sws-auth` provider to your `config/app.php` `\SWS\Auth\Providers\AuthServiceProvider::class,`
3. Setup your email configuration to your `.env` file
4. From the projects root folder run:

```
php artisan vendor:publish --tag=sws-auth

```

#### Optionally Build Cache

[](#optionally-build-cache)

1. From the projects root folder run `php artisan config:cache`

### Routes

[](#routes)

```
+--------+----------+------------------------+----------------------------+------------------------------------------------------------------+---------------------------------------------+
| Domain | Method   | URI                    | Name                       | Action                                                           | Middleware                                  |
+--------+----------+------------------------+----------------------------+------------------------------------------------------------------+---------------------------------------------+
|        | GET|HEAD | /                      | home                       | Closure                                                          | web                                         |
|        | GET|HEAD | api/user               |                            | Closure                                                          | api                                         |
|        |          |                        |                            |                                                                  | App\Http\Middleware\Authenticate:sanctum    |
|        | POST     | forgot-password        | auth.forgot.password       | sws\smartauth\Http\Controllers\AuthController@postForgotPassword | web                                         |
|        |          |                        |                            |                                                                  | App\Http\Middleware\RedirectIfAuthenticated |
|        | GET|HEAD | forgot-password        | auth.forgot.password.index | sws\smartauth\Http\Controllers\AuthController@forgotPassword     | web                                         |
|        |          |                        |                            |                                                                  | App\Http\Middleware\RedirectIfAuthenticated |
|        | GET|HEAD | login                  | auth.login.index           | sws\smartauth\Http\Controllers\AuthController@loginIndex         | web                                         |
|        |          |                        |                            |                                                                  | App\Http\Middleware\RedirectIfAuthenticated |
|        | POST     | login                  | auth.login.check           | sws\smartauth\Http\Controllers\AuthController@postLogin          | web                                         |
|        |          |                        |                            |                                                                  | App\Http\Middleware\RedirectIfAuthenticated |
|        | GET|HEAD | logout                 | auth.logout                | sws\smartauth\Http\Controllers\AuthController@logout             | web                                         |
|        | GET|HEAD | register               | auth.register.index        | sws\smartauth\Http\Controllers\AuthController@index              | web                                         |
|        |          |                        |                            |                                                                  | App\Http\Middleware\RedirectIfAuthenticated |
|        | POST     | register               | auth.register.store        | sws\smartauth\Http\Controllers\AuthController@register           | web                                         |
|        |          |                        |                            |                                                                  | App\Http\Middleware\RedirectIfAuthenticated |
|        | GET|HEAD | reset-password/{token} | auth.reset.password.index  | sws\smartauth\Http\Controllers\AuthController@resetPassword      | web                                         |
|        |          |                        |                            |                                                                  | App\Http\Middleware\RedirectIfAuthenticated |
|        | POST     | reset-password/{token} | auth.reset.password        | sws\smartauth\Http\Controllers\AuthController@postResetPassword  | web                                         |
|        |          |                        |                            |                                                                  | App\Http\Middleware\RedirectIfAuthenticated |
|        | GET|HEAD | sanctum/csrf-cookie    |                            | Laravel\Sanctum\Http\Controllers\CsrfCookieController@show       | web                                         |
|        | GET|HEAD | user-verify/{token}    | auth.email.verify          | sws\smartauth\Http\Controllers\AuthController@verifyEmail        | web                                         |
|        |          |                        |                            |                                                                  | App\Http\Middleware\RedirectIfAuthenticated |
+--------+----------+------------------------+----------------------------+------------------------------------------------------------------+---------------------------------------------+
```

### File Tree

[](#file-tree)

```
sws-auth
├── src
│   ├── config
│   │   └── sws-auth.php
│   ├── database
│   │   └── migrations
│   │       └── create_users_table.php
│   ├── Http
│   │   ├── Controllers
│   │   │   └── AuthController.php
│   │   └── Requests
│   │       └── ResetPasswordRequest.php
│   │       └── StoreUserRequest.php
│   ├── Models
│   │   └── Auth.php
│   ├── Providers
│   │   └── AuthServiceProvider.php
│   ├── Public
│   │   ├── css
│   │   │   └── sws-auth-style.css
│   │   └── js
│   │       └── sws-auth-script.js
│   ├── Resources
│   │   ├── views
│   │   │   └── Auth
│   │   │       ├── passwords
│   │   │       │   ├── forgot.blade.php
│   │   │       │   └── reset.blade.php
│   │   │       ├── login.blade.php
│   │   │       └── register.blade.php
│   │   └── Email
│   │       ├── passwordResetEmail.blade.php
│   │       └── userVerificationEmail.blade.php
│   ├── Routes
│   │   └── web.php
│   ├── Services
│   │   └── AuthService.php
├── vendor
│   ├── composer
│   │   └── installed.json
│   ├── autoload.php
│   └── composer.json
├── composer.json
├── LICENSE
└── README.md

```

### SWS Auth License

[](#sws-auth-license)

sws-auth is licensed under the [MIT license](https://opensource.org/licenses/MIT). Enjoy!

### Contributors

[](#contributors)

- Thanks goes to these [wonderful people](https://github.com/shawon3719/pacakge-custom-auth/graphs/contributors):
- Please feel free to contribute and make pull requests!

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![shawon3719](https://avatars.githubusercontent.com/u/45149536?v=4)](https://github.com/shawon3719 "shawon3719 (17 commits)")

### Embed Badge

![Health badge](/badges/sws-smartauth/health.svg)

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

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