2017 © Pedro Peláez
 

library laravel-registration-validator

Solid credential validation for Laravel.

image

photogabble/laravel-registration-validator

Solid credential validation for Laravel.

  • Wednesday, February 21, 2018
  • by carbontwelve
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Laravel Registration Validator

Solid credential validation for Laravel >= 5.5, (*1)

Build Status Latest Stable Version License , (*2)

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, (*3)

This package is a Laravel validation wrapper around the PHP Confusable Homoglyphs library to provide your application the ability to validate user input as not containing dangerous confusables., (*4)

I began writing this package soon after reading the above quote from this article by James Bennett on registration credential validation that referenced how Django’s auth system validates new users credentials., (*5)

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

This is a PHP7 project built for use with Laravel versions 5.5 and above., (*7)

Install

Install this library with composer: composer require photogabble/laravel-registration-validator., (*8)

Usage

This package provides three validators: not-reserved-name, not-confusable-string and not-confusable-email., (*9)

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., (*10)

Not Confusable String Validator

This validator checks the input using the PHP Confusable Homoglyphs library to ensure it does not contain any confusable unicode characters., (*11)

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., (*12)

The Versions

21/02 2018

dev-master

9999999-dev

Solid credential validation for Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

registration laravel email auth validation credentials username

14/02 2018

1.0.0

1.0.0.0

Solid credential validation for Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

registration laravel email auth validation credentials username