PHPackages                             photogabble/laravel-registration-validator - 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. photogabble/laravel-registration-validator

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

photogabble/laravel-registration-validator
==========================================

Solid credential validation for Laravel.

1.0.0(8y ago)1131[1 issues](https://github.com/photogabble/laravel-registration-validator/issues)MITPHPPHP &gt;=7.0.0

Since Feb 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/photogabble/laravel-registration-validator)[ Packagist](https://packagist.org/packages/photogabble/laravel-registration-validator)[ RSS](/packages/photogabble-laravel-registration-validator/feed)WikiDiscussions master Synced 5d ago

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

Laravel Registration Validator
==============================

[](#laravel-registration-validator)

*Solid credential validation for Laravel &gt;= 5.5*

 [![Build Status](https://camo.githubusercontent.com/808e0c1763363c4d884862df5a11a522957ad2e715fab5a785629d2d04058312/68747470733a2f2f7472617669732d63692e6f72672f70686f746f676162626c652f6c61726176656c2d726567697374726174696f6e2d76616c696461746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/photogabble/laravel-registration-validator) [![Latest Stable Version](https://camo.githubusercontent.com/33a7f973b1b4259fb93eae95da247da41e4af0246553d84d5f5614051d79a282/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70686f746f676162626c652f6c61726176656c2d726567697374726174696f6e2d76616c696461746f722e737667)](https://packagist.org/packages/photogabble/laravel-registration-validator) [![License](https://camo.githubusercontent.com/5ca97edb178b7eeeb1906fe2caf051165f648fa73fbbe2d7c34d6ecd411e550e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f70686f746f676162626c652f6c61726176656c2d726567697374726174696f6e2d76616c696461746f722e737667)](LICENSE)

### About this package

[](#about-this-package)

> *An all-Latin username containing confusables is probably fine, and an all-Cyrillic username containing confusables is probably fine, but a username containing mostly Latin plus one Cyrillic code point which happens to be confusable with a Latin one… is not.* - [James Bennet](https://www.b-list.org/weblog/2018/feb/11/usernames/)

This package is a Laravel validation wrapper around the [PHP Confusable Homoglyphs library](https://github.com/photogabble/php-confusable-homoglyphs) to provide your application the ability to validate user input as not containing dangerous confusables.

I began writing this package soon after reading the above quote from [this article](https://www.b-list.org/weblog/2018/feb/11/usernames/) by James Bennett on registration credential validation that referenced how [Django’s auth system](https://github.com/ubernostrum/django-registration/blob/1d7d0f01a24b916977016c1d66823a5e4a33f2a0/registration/validators.py) validates new users credentials.

In addition to unicode confusables validation this package also includes a PHP port of the reserved name validation that Django's auth system uses.

This is a PHP7 project built for use with Laravel versions 5.5 and above.

### Install

[](#install)

Install this library with composer: `composer require photogabble/laravel-registration-validator`.

### Usage

[](#usage)

This package provides three validators: `not-reserved-name`, `not-confusable-string` and `not-confusable-email`.

#### Not Reserved Name Validator

[](#not-reserved-name-validator)

This validator checks the input to ensure it does not contain any strings listed within config key `registration-validation.reserved_list`. To extend this list use the `php artisan vendor:publish` command to copy this config to your project.

#### Not Confusable String Validator

[](#not-confusable-string-validator)

This validator checks the input using the [PHP Confusable Homoglyphs library](https://github.com/photogabble/php-confusable-homoglyphs) to ensure it does not contain any confusable unicode characters.

#### Not Confusable Email Validator

[](#not-confusable-email-validator)

This validator does not validate that the input is a valid email address, instead it validates that a string containing an `@` does not contain any confusable unicode characters for each part either side of the `@` symbol.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

3013d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/464699?v=4)[Simon Dann](/maintainers/carbontwelve)[@carbontwelve](https://github.com/carbontwelve)

---

Top Contributors

[![carbontwelve](https://avatars.githubusercontent.com/u/464699?v=4)](https://github.com/carbontwelve "carbontwelve (16 commits)")

---

Tags

authinputlaravellaravel55usernamevalidationlaravelvalidationauthemailregistrationcredentialsusername

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/photogabble-laravel-registration-validator/health.svg)

```
[![Health](https://phpackages.com/badges/photogabble-laravel-registration-validator/health.svg)](https://phpackages.com/packages/photogabble-laravel-registration-validator)
```

###  Alternatives

[ellaisys/aws-cognito

AWS Cognito package that allows Auth and other related features using the AWS SDK for PHP

120220.7k1](/packages/ellaisys-aws-cognito)[awes-io/auth

Laravel Authentication package with built-in two-factor (Authy) and social authentication (Socialite).

3826.7k1](/packages/awes-io-auth)[lakm/nopass

Provides passwordless authentication for your laravel projects.

2213.6k2](/packages/lakm-nopass)[orchestra/auth

Auth Component for Orchestra Platform

24108.5k3](/packages/orchestra-auth)[ingria/laravel-x509-auth

Laravel 5 Client Certificate auth middleware

375.6k](/packages/ingria-laravel-x509-auth)

PHPackages © 2026

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