Developed with love by KnpLabs Hire us for your project!
38

PasswordStrengthBundle

by rollerworks

Symfony 2 Password strengt and blacklisting constraint bundle

RollerworksPasswordStrengthBundle

This bundle provides a validator for ensuring strong passwords in Symfony2 applications.

Passwords can be validated using either strength-levels (weak, medium, strong etc)
or by configuring explicit requirements (needs letters, numbers etc)

This bundle provides the same level of functionality as the
PasswordStrengthBundle created by John Bafford.
And is considered a replacement of the original bundle.

Installation

Step 1: Using Composer (recommended)

To install RollerworksPasswordStrengthBundle with Composer just run:

$ php composer.phar require rollerworks/password-strength-bundle

Now, Composer will automatically download all required files, and install them
for you.

Step2: Enable the bundle

Enable the bundle in the kernel:

<?php

// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new Rollerworks\Bundle\PasswordStrengthBundle\RollerworksPasswordStrengthBundle(),
    // ...
);

Congratulations! You're ready!

Basic Usage

Strength validation

Validates the passwords strength-level (weak, medium, strong etc).

Requirements validation

Validates the passwords using explicitly configured requirements (letters, caseDiff, numbers, requireSpecialCharacter).

Password blacklisting

There are times you want forbid (blacklist) a password from usage.

Passwords are blacklisted using providers which can either an array or
(flat-file) database (which you can update regularly).

With the default installation the following providers can be used.

  • Noop: Default provider, does nothing.
  • Array: Simple in memory blacklist provider (not recommended for big lists)
  • Sqlite: Provides the blacklist using a SQLite3 database file.

But building your own is also possible.
Documentation on this is currently missing,
see current providers for more information.

Copyright (c) 2012 - 2015 Sebastiaan Stok

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.
  • Update composer.json
    By sstok, 1 year ago
  • feature #47 Fix: Password strength calculation made easier and more consistent (mennowame)
    By sstok, 1 year ago
  • Fix: Password strength calculation made easier and more consistent
    By mennowame, 1 year ago
  • Update .travis.yml
    By sstok, 1 year ago
  • bug #42 Update PasswordRequirementsValidator.php (philrennie)
    By sstok, 1 year ago
  • Update PasswordRequirementsValidator.php
    By philrennie, 1 year ago
  • minor #41 Remove unused statements (hlecorche)
    By sstok, 1 year ago
  • Remove unused statements
    By hlecorche, 1 year ago
  • update composer branch-alias
    By sstok, 1 year ago
  • bug #40 fix minimum symfony/validator version (sstok)
    By sstok, 1 year ago
  • Update composer.json
    By sstok, 1 year ago
  • update installation instructions [skip ci]
    By sstok, 1 year ago
  • fix minimum symfony/validator version
    By sstok, 1 year ago
  • feature #39 Compatibility with 2.5 API #37 (sstok, hlecorche)
    By sstok, 1 year ago
  • Compatibility with 2.5 API
    By hlecorche, 1 year ago
  • improve testing multiple versions with Travis-ci
    By sstok, 1 year ago
  • bump minimum Symfony version 2.3 LTS
    By sstok, 1 year ago
  • remove copyright year from header
    By sstok, 2 years ago
  • Merge pull request #35 from sstok/scrutinizer-patch-1
    By sstok, 2 years ago
  • bug #34 fix broken tests (sstok)
    By sstok, 2 years ago
  • Scrutinizer Auto-Fixes
    By scrutinizer-auto-fixer, 2 years ago
  • fix broken tests
    By sstok, 2 years ago
  • merge #32 plug some improvements (cordoval)
    By sstok, 2 years ago
  • plug some improvements
    By sstok, 2 years ago
  • Merge pull request #30 from austinh/master
    By sstok, 2 years ago
  • Update BlacklistUpdateCommand.php
    By austinh, 2 years ago
  • fix blacklist validator service definition
    By sstok, 2 years ago
  • fix blacklist validator service
    By sstok, 2 years ago
  • update composer.json
    By sstok, 2 years ago
  • fix blacklist service definition
    By sstok, 2 years ago