jycr753/password-strength-checker

Make a calculation so users can have a visual response to password input

0.2 2016-07-03 11:42 UTC

This package is auto-updated.

Last update: 2024-11-11 20:51:51 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads

Documentation

Installation

To install run composer:

composer require jycr753/password-strength-checker

Register the service provider:

jycr753\PasswordStrengthChecker\ServiceProvider::class,

Publish the configuration files to customize the package:

php artisan vendor:publish --provider="Vendor\jycr753\PasswordStrengthChecker\ServiceProvider" --tag="config"

Usage

Import package in class

use jycr753\PasswordStrengthChecker\ServiceProvider as PSC;

Method usage Sample:

public function passwordCheck(Request $request)
{
    $password = $request->get('password');
    $score = PSC::check($password);
    return [$score];
}

Output sample:

 [
     {
         "data": {
             "score": 104,
             "strength": 4,
             "text": "Very Strong"
         }
     }
 ]

Configuration

Contributing

Bug Reports

All issues are welcome, to create a better product, but your issue should contain a title and a clear description of the issue. You should also include as much relevant information as possible and a code sample that demonstrates the issue.

Which Branch?

All bug fixes should be sent to the develop branch. Bug fixes should never be sent to the master

Security Vulnerabilities

If you discover a security vulnerability within this package, write an email to developer@jorgerodriguez.dk .

Coding Style

Our projects follows the PSR-2 coding standard and the PSR-4 autoloading standard.

StyleCI

StyleCI automatically fixes code style to match the standard.

License

Copyright 2016 Jorge Rodriguez(jycr753) and other contributors:

Permission is hereby granted, free of charge, to any person 
obtaining a copy of this software and associated documentation 
files (the "Software"), to deal in the Software without restriction, 
including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software, 
and to permit persons to whom the Software is furnished to do so, 
subject to the following conditions:

The above copyright notice and this permission notice shall be included 
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 
OTHER DEALINGS IN THE SOFTWARE.