PHPackages                             hardikkhorasiya09/change-login-field - 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. hardikkhorasiya09/change-login-field

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

hardikkhorasiya09/change-login-field
====================================

1.0.0(1y ago)010MITPHP

Since May 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/HardikKhorasiya09/change-login-field)[ Packagist](https://packagist.org/packages/hardikkhorasiya09/change-login-field)[ RSS](/packages/hardikkhorasiya09-change-login-field/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Change Login Field Plugin for Filament
======================================

[](#change-login-field-plugin-for-filament)

[![Packagist](https://camo.githubusercontent.com/8d11c58842a3c496f75bfbf08026673827cb7473b9c9ced250d1f02e614afa54/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68617264696b6b686f72617369796130392f6368616e67652d6c6f67696e2d6669656c64)](https://packagist.org/packages/hardikkhorasiya09/change-login-field)

This **Filament Plugin** allows you to customize the login form fields in your Filament-based application. By default, Filament uses the **email** field for login, but this plugin lets you easily switch the login field to **username**, **phone number**, or any custom field of your choice.

Features
--------

[](#features)

- **Flexible Login Field**: Choose between **email**, **username**, **phone number**, or any custom field for login.
- **Configurable**: Easily configure the login field via the `config/change-login-field.php` configuration file.
- **Seamless Integration**: Works with your existing Filament setup without requiring major code changes.

Installation and Setup
----------------------

[](#installation-and-setup)

You can install this plugin via **Composer**.

### Step 1: Install the Plugin

[](#step-1-install-the-plugin)

Run the following command to install the package via Composer:

```
composer require hardikkhorasiya09/change-login-field
```

### Step 2: Add this into your Filament `PanelProvider` class `panel()`

[](#step-2-add-this-into-your-filament-panelprovider-class-panel)

```
use Hardikkhorasiya09\ChangeLoginField\ChangeLoginFieldPlugin;

$panel->...
    // ->login() //comment or remove login registration for default setting
    ->plugins([
      ...
      ChangeLoginFieldPlugin::make()      //required to enable this extension
    ]);
```

### Step 3: Need to run below command

[](#step-3-need-to-run-below-command)

You can publish the config file `change-login-field.php`, by running this command

```
php artisan vendor:publish --tag=change-login-field-config
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance49

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% 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

377d ago

### Community

Maintainers

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

---

Top Contributors

[![HardikKhorasiya09](https://avatars.githubusercontent.com/u/45195276?v=4)](https://github.com/HardikKhorasiya09 "HardikKhorasiya09 (3 commits)")[![hardikpk09](https://avatars.githubusercontent.com/u/158261459?v=4)](https://github.com/hardikpk09 "hardikpk09 (1 commits)")

### Embed Badge

![Health badge](/badges/hardikkhorasiya09-change-login-field/health.svg)

```
[![Health](https://phpackages.com/badges/hardikkhorasiya09-change-login-field/health.svg)](https://phpackages.com/packages/hardikkhorasiya09-change-login-field)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[jeffgreco13/filament-breezy

A custom package for Filament with login flow, profile and teams support.

1.0k1.7M41](/packages/jeffgreco13-filament-breezy)[althinect/filament-spatie-roles-permissions

340954.7k9](/packages/althinect-filament-spatie-roles-permissions)[stechstudio/filament-impersonate

A Filament package to impersonate your users.

3742.7M27](/packages/stechstudio-filament-impersonate)[dutchcodingcompany/filament-socialite

Social login for Filament through Laravel Socialite

213914.9k9](/packages/dutchcodingcompany-filament-socialite)[andrewdwallo/filament-companies

A comprehensive Laravel authentication and authorization system designed for Filament, focusing on multi-tenant company management.

34450.0k2](/packages/andrewdwallo-filament-companies)

PHPackages © 2026

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