PHPackages                             diglin/module-username - 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. diglin/module-username

ActiveMagento2-module

diglin/module-username
======================

Real Username support for Magento 2

2.0.0-beta(9y ago)11705[6 issues](https://github.com/diglin/Diglin_Username2/issues)OSL-3.0PHPPHP ~5.5.0|~5.6.0|~7.0.0

Since Aug 29Pushed 7y ago5 watchersCompare

[ Source](https://github.com/diglin/Diglin_Username2)[ Packagist](https://packagist.org/packages/diglin/module-username)[ RSS](/packages/diglin-module-username/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (11)Versions (3)Used By (0)

Diglin\\Username module for Magento 2 - BETA
============================================

[](#diglinusername-module-for-magento-2---beta)

Magento module which allows your customers to use a username and not only the email address as identifier

**IMPORTANT**It's a BETA. Lots of things have not been yet implemented or is a work in progress. See the issues [https://github.com/diglin/Diglin\_Username2/issues/created\_by/diglin](https://github.com/diglin/Diglin_Username2/issues/created_by/diglin). For example checkout account creation with username doesn't work.

Features
--------

[](#features)

- Compatible and tested with Magento version 2.0 &amp; 2.1
- Login with a username or email, it can be done from frontend during checkout or to get access to the customer account
- Save a username from frontend (register account or checkout process) or from backend by editing a customer account
- Prevent duplicate username
- The default templates override some customer and checkout views to adapt display for login pages, checkout process and account edition in frontend. If you have a customized template, update your template with the content of the one of this module.
- Configurable options to define what kind of username to support: only letters, only digits, both or default (digits, letters and special characters '-\_') or even custom regex
- Configurable options to set the maximum and minimum string length
- Display Username of each customer in the Customer Management Grid
- Allow or not the customer to edit the username in My Account in frontend
- Support username when a customer wants to retrieve his forgotten password thanks to the "Forgotten Password" form
- Generate usernames for customer account who don't have one, can be triggered from configuration page. Generated usernames will use current saved configuration (letters, digits, both or custom regex).

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

[](#installation)

```
cd path/to/my/magento/project
composer.phar require 'diglin/module-username'
bin/magento module:enable Diglin_Username
bin/magento setup:upgrade
bin/magento setup:di:compile

```

Uninstall
---------

[](#uninstall)

```
cd path/to/my/magento/project
bin/magento module:uninstall -r Diglin_Username

```

Author
------

[](#author)

- Sylvain Rayé
-
- [@diglin\_](https://twitter.com/diglin_)
- [Follow me on github!](https://github.com/diglin)

###  Health Score

23

—

LowBetter than 30% of packages

Maintenance9

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

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

3490d ago

### Community

Maintainers

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

---

Top Contributors

[![sylvainraye](https://avatars.githubusercontent.com/u/1337461?v=4)](https://github.com/sylvainraye "sylvainraye (23 commits)")[![MaxMage](https://avatars.githubusercontent.com/u/35223992?v=4)](https://github.com/MaxMage "MaxMage (1 commits)")[![mitch-tofi](https://avatars.githubusercontent.com/u/1680302?v=4)](https://github.com/mitch-tofi "mitch-tofi (1 commits)")

---

Tags

magentomagento2

### Embed Badge

![Health badge](/badges/diglin-module-username/health.svg)

```
[![Health](https://phpackages.com/badges/diglin-module-username/health.svg)](https://phpackages.com/packages/diglin-module-username)
```

###  Alternatives

[yireo/magento2-googletagmanager2

Add Google Tag Manager to Magento

166902.4k5](/packages/yireo-magento2-googletagmanager2)[mollie/magento2

Mollie Payment Module for Magento 2

1121.5M8](/packages/mollie-magento2)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50366.5k13](/packages/dotdigital-dotdigital-magento2-extension)[amzn/amazon-pay-magento-2-module

Official Magento2 Plugin to integrate with Amazon Pay

110492.2k](/packages/amzn-amazon-pay-magento-2-module)[yireo/magento2-emailtester2

Preview transactional emails and test send them in your backend

33379.9k](/packages/yireo-magento2-emailtester2)[buckaroo/magento2

Buckaroo Magento 2 extension

32398.9k4](/packages/buckaroo-magento2)

PHPackages © 2026

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