All Projects → schuppo → Passwordstrengthpackage

schuppo / Passwordstrengthpackage

Licence: mit
This package provides a validator for ensuring strong passwords in Laravel applications

Labels

Projects that are alternatives of or similar to Passwordstrengthpackage

Laravel Deletable
👾 Gracefully restrict deletion of Laravel Eloquent models
Stars: ✭ 137 (-2.14%)
Mutual labels:  laravel
Laravel Fractal
An easy to use Fractal wrapper built for Laravel and Lumen applications
Stars: ✭ 1,748 (+1148.57%)
Mutual labels:  laravel
Laravel Face Auth
Laravel Face authentication
Stars: ✭ 139 (-0.71%)
Mutual labels:  laravel
Laravel Dotenv Editor
The .env file editor tool for Laravel 5.8+
Stars: ✭ 137 (-2.14%)
Mutual labels:  laravel
Laravel Api Explorer
API explorer for laravel applications
Stars: ✭ 138 (-1.43%)
Mutual labels:  laravel
Config
Manage Laravel configuration by persistent storage
Stars: ✭ 139 (-0.71%)
Mutual labels:  laravel
Laravel Ssh Tunnel
Easy creation & maintenance of an SSH Tunnel for Laravel/Lumen
Stars: ✭ 134 (-4.29%)
Mutual labels:  laravel
Laravel Azure Storage
Microsoft Azure Blob Storage integration for Laravel's Storage API
Stars: ✭ 139 (-0.71%)
Mutual labels:  laravel
Hunt
This is laravel 5.5 + pjax the Hunt
Stars: ✭ 138 (-1.43%)
Mutual labels:  laravel
Ignition
A beautiful error page for Laravel apps
Stars: ✭ 1,885 (+1246.43%)
Mutual labels:  laravel
Laravel Backend
Backend for Laravel 4
Stars: ✭ 137 (-2.14%)
Mutual labels:  laravel
Laravel Analytics Event Tracking
Laravel package to easily send events to Google Analytics
Stars: ✭ 137 (-2.14%)
Mutual labels:  laravel
Laravel5 Angular Material Starter
Get started with Laravel 5.3 and AngularJS (material)
Stars: ✭ 1,692 (+1108.57%)
Mutual labels:  laravel
Laravel Language
Language switcher package for Laravel
Stars: ✭ 137 (-2.14%)
Mutual labels:  laravel
Pipedrive
Complete Pipedrive API client for PHP
Stars: ✭ 138 (-1.43%)
Mutual labels:  laravel
Laravel Tutorial
Laravel 中文新手书籍《Laravel 入门教程》的源代码
Stars: ✭ 136 (-2.86%)
Mutual labels:  laravel
Maravel Permissions
Because in the Maravelous univer every user deserves super power
Stars: ✭ 139 (-0.71%)
Mutual labels:  laravel
Laravel Scout Postgres
PostgreSQL Full Text Search Engine for Laravel Scout
Stars: ✭ 140 (+0%)
Mutual labels:  laravel
Steam
A composer package to make use of the steam web api.
Stars: ✭ 139 (-0.71%)
Mutual labels:  laravel
Jigsaw
Simple static sites with Laravel’s Blade.
Stars: ✭ 1,823 (+1202.14%)
Mutual labels:  laravel

PasswordStrength Package

Build Status Total Downloads License

This package provides a validator that ensures strong passwords in Laravel 4, 5 & 6 applications. It is influenced a lot by PasswordStrengthBundle for Symfony 2.

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

The provided validations include:

  • 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/7 users

Requires PHP 7.1+

Just composer require schuppo/password-strength:"~2.0".

For Laravel 5/6 users

Just composer require schuppo/password-strength:"~1.5".

For Laravel 4 users

Just composer require schuppo/password-strength:"~0.10".

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.

Caution

I recently 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.

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.

Usage

Now Laravel's native Validator is extended by four rules:

  • case_diff
  • numbers
  • letters
  • symbols

Example

You can apply these rules as described in the validation section on Laravel's website

$v = Validator::make(array(
    'password' => '[email protected]',
    '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.

History

[Laravel 6 / 7 / 8]

[2.4]

  • Added Finish and Italian translations

[2.3]

  • Added Swedish and Norwegian translations

[2.2]

  • Added support for Laravel 8

[Laravel 6 / Laravel 7 ]

[2.1]

  • Added Turkish translation

[2.0]

  • 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]

[1.13/-]

Removes need for Str facace

[1.12/-]

Enables Laravel 6 support

[1.11/-]

Simplifies symbol validation

[1.10/0.15]

Adds Chinese and Spanish translation

[1.9/0.14]

Improves Polish translation

[1.8/0.13]

Adds Arabic translation

[1.7/0.12]

Adds Czech translation

[1.6/0.11]

  • Adds Russian translation

[1.5/0.10]

  • Adds unicode flag to case difference validation rule

[1.4/0.9]

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

[1.3/0.8.2]

Adds Romanian translation

[1.2/0.8.1]

Adds Polish translation

[1.1/0.8]

Adds French translation

[1.0.2/0.7]

Updates README.md

[1.0.1]

Make package laravel 5 ready

[0.6]

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

[0.5.3]

  • Added new version to composer.json

[0.5.2]

  • Small changes in README.md

[0.5.1]

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

[0.4.1]

  • 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]

  • 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:

Reporting Issues or Feature Requests

Issues and feature requests are tracked on GitHub.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].