定制 lightmaker/complexify-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

lightmaker/complexify-bundle

最新稳定版本:1.1

Composer 安装命令:

composer require lightmaker/complexify-bundle

包简介

A simple Symfony2 bundle for Michael Crumley's PHP port of Dan Palmer's jquery.complexify.js

README 文档

README

Build Status Code Coverage Scrutinizer Code Quality SensioLabsInsight Latest Stable Version Total Downloads

A Symfony2 bundle for Michael Crumley's PHP port of Dan Palmer's jquery.complexify.js

Installation

composer require lightmaker/complexify-bundle

Update your Kernel

# AppKernel.php
public function registerBundles() {
  $bundles = array(
    new Lightmaker\ComplexifyBundle\LightmakerComplexifyBundle()
  );
}

Usage

You can use the Lightmaker\ComplexifyBundle\Validator\Constraints\Complexify constraint with the following options.

  • message: The validation message (default: 'Password must be complex.')
  • minimumChars: The minimum acceptable password length (default: 8)
  • strengthScaleFactor: Scale the required password strength - higher numbers require a more complex password (default: 1)
  • bannedPasswords: An array of banned passwords (Default: empty array)
  • banMode: strict == don't allow substrings of banned passwords, loose == only ban exact matches (default: strict)
  • encoding: (default: 'UTF-8')

统计信息

  • 总下载量: 25.85k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 6
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-29