2017 © Pedro Peláez
 

library password-strength

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

image

schuppo/password-strength

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  • Thursday, February 8, 2018
  • by schuppo
  • Repository
  • 5 Watchers
  • 73 Stars
  • 246,050 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 25 Forks
  • 2 Open issues
  • 27 Versions
  • 15 % Grown

The README.md

PasswordStrength Package

Build Status Total Downloads License, (*1)

This package provides a validator that ensures strong passwords in Laravel 4 - 9 applications. It is influenced a lot by PasswordStrengthBundle for Symfony 2., (*2)

It is out now for a while and since there were no complaints it very likely fulfills its purpose., (*3)

The provided validations include:, (*4)

  • check if input contains alphabetic characters
  • check if input contains numeric characters
  • check if input contains mixed case characters
  • check if input contains symbols

Documentation

Installation

Get the package

For Laravel 6 - 9 users, (*5)

Requires PHP 7.1+, (*6)

Just composer require schuppo/password-strength:"~2.0"., (*7)

For Laravel 5/6 users, (*8)

Just composer require schuppo/password-strength:"~1.5"., (*9)

For Laravel 4 users, (*10)

Just composer require schuppo/password-strength:"~0.10"., (*11)

Initialize the package

If you do run the package on Laravel 5.5+, you can start using the package at this point. package auto-discovery takes care of the magic of adding the service provider., (*12)

Caution, (*13)

I recognized a small conflict in the usage of this package in combination with unique-with: One runs into problems when adding the PasswordStrengthServiceProvider after UniqueWithValidatorServiceProvider to the providers array, the rules of this package stay unknown to the Laravel Validator., (*14)

The problem is easy to fix though: Just add the service provider of this package in front of the service provider of unique-with. In that order both packages work fine., (*15)

Usage

Now Laravel's native Validator is extended by four rules:, (*16)

  • case_diff
  • numbers
  • letters
  • symbols

Example

You can apply these rules as described in the validation section on Laravel's website, (*17)

$v = Validator::make(array(
    'password' => '12345QWERTqwert@',
    'password' => 'case_diff|numbers|letters|symbols'
));
$v->passes();   // returns true;

Notice that you can validate any value with the new rules. The only reason why this package is called "Password Strength Package" is that it describes its foremost purpose., (*18)

History

[Laravel 6 - 9], (*19)

[2.6], (*20)

  • Added Thai translation

[2.5], (*21)

  • Added support for Laravel 9

[2.4], (*22)

  • Added Finish and Italian translations

[2.3], (*23)

  • Added Swedish and Norwegian translations

[2.2], (*24)

  • Added support for Laravel 8

[Laravel 6 / Laravel 7 ], (*25)

[2.1], (*26)

  • Added Turkish translation

[2.0], (*27)

  • Laravel 7 support.
  • Minimum PHP requirement now 7.1
  • Changes folder structure, psr-4 autoload.
  • Updates Travis CI config to test multiple Laravel versions.
  • Support for higher PHPUnit versions.
  • orchestra/testbench dev dependency added.

[Laravel 5 / Laravel 4], (*28)

[1.13/-], (*29)

Removes need for Str facace, (*30)

[1.12/-], (*31)

Enables Laravel 6 support, (*32)

[1.11/-], (*33)

Simplifies symbol validation, (*34)

[1.10/0.15], (*35)

Adds Chinese and Spanish translation, (*36)

[1.9/0.14], (*37)

Improves Polish translation, (*38)

[1.8/0.13], (*39)

Adds Arabic translation, (*40)

[1.7/0.12], (*41)

Adds Czech translation, (*42)

[1.6/0.11], (*43)

  • Adds Russian translation

[1.5/0.10], (*44)

  • Adds unicode flag to case difference validation rule

[1.4/0.9], (*45)

  • Adds Dutch translation
  • Updates French translation
  • Makes packages php7 ready

[1.3/0.8.2], (*46)

Adds Romanian translation, (*47)

[1.2/0.8.1], (*48)

Adds Polish translation, (*49)

[1.1/0.8], (*50)

Adds French translation, (*51)

[1.0.2/0.7], (*52)

Updates README.md, (*53)

[1.0.1], (*54)

Make package laravel 5 ready, (*55)

[0.6], (*56)

  • New validation rule to check if input contains symbols. Thanks to closca for providing this new feature.

[0.5.3], (*57)

  • Added new version to composer.json

[0.5.2], (*58)

  • Small changes in README.md

[0.5.1], (*59)

  • Minimum requirement (PHP 5.4 because of array chains) is now recognized by composer.json

[0.4.1], (*60)

  • The package works properly now when other extensions of laravel's validator are used as well (like unique-with).
  • The package is able to take localization overwrites now as described in the laravel docs

[0.3.1], (*61)

  • Fixed: Package validator doesn't overwrite custom validation errror messages any more. Not functional tested though because I have no clue how to set up a test which controls the passing of variables from the password strength package to the native validator INSIDE the package's test folders. Any suggestions?

License

This package is under the MIT license. See the complete license:, (*62)

Reporting Issues or Feature Requests

Issues and feature requests are tracked on GitHub., (*63)

The Versions

08/02 2018

1.x-dev

1.9999999.9999999.9999999-dev

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation password laravel 5 laravel5 password strength

08/02 2018

v1.11

1.11.0.0

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation password laravel 5 laravel5 password strength

12/10 2017

v1.10

1.10.0.0

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation password laravel 5 laravel5 password strength

12/10 2017

0.x-dev

0.9999999.9999999.9999999-dev

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation laravel 4 password laravel4 password strength

12/10 2017

v0.15

0.15.0.0

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation laravel 4 password laravel4 password strength

05/10 2016

v0.14

0.14.0.0

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation laravel 4 password laravel4 password strength

05/10 2016

v1.9

1.9.0.0

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation password laravel 5 laravel5 password strength

01/09 2016

0.13

0.13.0.0

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation laravel 4 password laravel4 password strength

01/09 2016

1.8

1.8.0.0

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation password laravel 5 laravel5 password strength

19/06 2016

0.12

0.12.0.0

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation laravel 4 password laravel4 password strength

19/06 2016

1.7

1.7.0.0

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation password laravel 5 laravel5 password strength

23/01 2016

1.6

1.6.0.0

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation password laravel 5 laravel5 password strength

23/01 2016

0.11

0.11.0.0

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation laravel 4 password laravel4 password strength

21/01 2016

0.10

0.10.0.0

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation laravel 4 password laravel4 password strength

21/01 2016

1.5

1.5.0.0

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation password laravel 5 laravel5 password strength

12/12 2015

1.4.1

1.4.1.0

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation password laravel 5 laravel5 password strength

12/12 2015

0.9

0.9.0.0

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation laravel 4 password laravel4 password strength

12/12 2015

1.4

1.4.0.0

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation password laravel 5 laravel5 password strength

14/06 2015

0.8.2

0.8.2.0

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation laravel 4 password laravel4 password strength

14/06 2015

1.3

1.3.0.0

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation password laravel 5 laravel5 password strength

07/03 2015

0.8.1

0.8.1.0

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation laravel 4 password laravel4 password strength

07/03 2015

1.2

1.2.0.0

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation password laravel 5 laravel5 password strength

01/03 2015

1.1

1.1.0.0

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation password laravel 5 laravel5 password strength

01/03 2015

0.8

0.8.0.0

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation laravel 4 password laravel4 password strength

12/02 2015

1.0.2

1.0.2.0

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation password laravel 5 laravel5 password strength

05/02 2015

0.7

0.7.0.0

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation laravel 4 password laravel4 password strength

08/11 2014

0.6

0.6.0.0

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Schupp

laravel validation laravel 4 password laravel4 password strength