PHPackages                             sinarajabpour1998/identifier - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sinarajabpour1998/identifier

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sinarajabpour1998/identifier
============================

v1.6.4(4y ago)045MITPHPPHP 7.1.\*|7.2.\*|7.3.\*|7.4.\*|8.\*

Since Jul 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/sinarajabpour1998/identifier)[ Packagist](https://packagist.org/packages/sinarajabpour1998/identifier)[ RSS](/packages/sinarajabpour1998-identifier/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (4)Versions (24)Used By (0)

Laravel Identifier Package :: simple authentication
===================================================

[](#laravel-identifier-package--simple-authentication)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8796077901bdd9f85e2c218027c61bbfa51df91072fb38ec43c4709b829b1847/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73696e6172616a6162706f7572313939382f6964656e7469666965722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sinarajabpour1998/identifier)[![GitHub issues](https://camo.githubusercontent.com/55a55ba93ac7c413907184d79e45561a1216f870879f875dfdc266c80c307a55/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f73696e6172616a6162706f7572313939382f6964656e7469666965723f7374796c653d666c61742d737175617265)](https://github.com/sinarajabpour1998/identifier/issues)[![GitHub stars](https://camo.githubusercontent.com/b14820555a39541d7e1226b906d804d317ee54e3bd193f77d4420eb63aa547e6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f73696e6172616a6162706f7572313939382f6964656e7469666965723f7374796c653d666c61742d737175617265)](https://github.com/sinarajabpour1998/identifier/stargazers)[![GitHub forks](https://camo.githubusercontent.com/949ab92cc8e70ff26b8579cdd6269263c7ad4547df43853695f682deb7a3e644/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f73696e6172616a6162706f7572313939382f6964656e7469666965723f7374796c653d666c61742d737175617265)](https://github.com/sinarajabpour1998/identifier/network)[![Total Downloads](https://camo.githubusercontent.com/cef1a5ef510220fc14b656188142afe70ec0c565ef079d03c917086f643dac9d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73696e6172616a6162706f7572313939382f6964656e7469666965722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sinarajabpour1998/identifier)[![GitHub license](https://camo.githubusercontent.com/ff4c852d85aa292320ff93a0f7ccb0d05e728407f649297dd1075efaf5305440/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73696e6172616a6162706f7572313939382f6964656e7469666965723f7374796c653d666c61742d737175617265)](https://github.com/sinarajabpour1998/identifier/blob/master/LICENSE)

Laravel Identifier Package :: simple authentication (login, register and forgot-password).

How to install and config [sinarajabpour1998/identifier](https://github.com/sinarajabpour1998/identifier) package?
------------------------------------------------------------------------------------------------------------------

[](#how-to-install-and-config-sinarajabpour1998identifier-package)

#### ⬇️ Installation

[](#️-installation)

```
composer require sinarajabpour1998/identifier
```

#### Publish Config file

[](#publish-config-file)

```
php artisan vendor:publish --tag=identifier
```

- Update (Be careful! Overwrites existing settings)

```
php artisan vendor:publish --tag=identifier --force
```

#### Migrate tables, to add identifier tables to database

[](#migrate-tables-to-add-identifier-tables-to-database)

```
php artisan migrate
```

#### 📖 How to change auth options

[](#-how-to-change-auth-options)

- Set the configs in /config/identifier.php

Usage
-----

[](#usage)

- Create resources/sass/auth.scss file and add the following code :

```
// Fonts
@import './fonts/awesome/awesome-font.css';
@import './fonts/iransans/iransans-font.css';

@import "./vendor/identifier/identifier.scss";
```

- Please note that fonts directories is up to your project structure. change them with your own directories.

- Create resources/js/auth.js file and add the following code :

```
require('./bootstrap');

require("./vendor/identifier/identifier");
```

- Add created files directly in your webpack.mix.js

```
.js('resources/js/auth.js', 'public/js')
    .sass('resources/sass/auth.scss', 'public/css')
```

- run npm :

```
npm run dev
```

- Use this route to redirect your users to login and registration page

```
route('identifier.login');
```

- Change `app/Http/Middleware/Authenticate.php` like this :

```
protected function redirectTo($request)
{
    if (! $request->expectsJson()) {
        return route('identifier.login');
    }
}
```

- Clear caches

```
php artisan cache:clear
php artisan view:clear
php artisan route:clear
php artisan config:clear
```

- Done !

\###Features :

- Dynamic site name and terms url (change via config file)

- configuration :

```
    return[
    // other codes ...

    // the title of site (this will be used in title and help titles)
    'site_title' => env('APP_NAME', 'پیش فرض'),

    // full url of terms page (this will be used in register page)
    'terms_url' => 'https://test.com/',

    // other codes ...
    ];
```

- Dynamic redirect url after login for separate admins and users (change via config file)

- configuration :

```
    return[
    // other codes ...

    // admin login redirect route name
    'admin_login_redirect' => 'admin',

    // user login redirect route name
    'user_login_redirect' => 'home',

    // other codes ...
    ];
```

- Dynamic css and js path

- configuration : You can change anything in published sass and js files and move them into desired location, then you can change the files' location in config file

```
    return[
    // other codes ...

    // where did you required the identifier.scss file ?
    // this file must be included in webpack.js as well
    'css_public_path' => 'css/auth.css',

    // where did you required the identifier.js file ?
    // this file must be included in webpack.js as well
    'js_public_path' => 'js/auth.js',

    // other codes ...
    ];
```

- OTP code length

- configuration :

```
    return[
    // other codes ...

    // OTP codes digit, by default it's 6-digit (secure and standard)
    'otp_digit' => 6,

    // other codes ...
    ];
```

- Redirect users to specific location after login , registration or account recovery by url (New feature since 1.3 release)

- usage :

```
https://example.com/auth/default?back=https://example.com/cart/confirm
```

\###Requirements :

- PHP v7.0 or above
- Laravel v7.0 or above
- sinarajabpour1998/notifier package [packagist link](https://packagist.org/packages/sinarajabpour1998/notifier)
- sinarajabpour1998/alpha-helper package [packagist link](https://packagist.org/packages/sinarajabpour1998/alpha-helper)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Every ~9 days

Total

23

Last Release

1549d ago

### Community

Maintainers

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

---

Top Contributors

[![sinatx](https://avatars.githubusercontent.com/u/76904071?v=4)](https://github.com/sinatx "sinatx (28 commits)")

### Embed Badge

![Health badge](/badges/sinarajabpour1998-identifier/health.svg)

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

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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