PHPackages                             psecio/pwdcheck - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. psecio/pwdcheck

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

psecio/pwdcheck
===============

A password complexity validator

1.0(12y ago)21253MITPHPPHP &gt;=5.3.1

Since Jan 4Pushed 11y ago3 watchersCompare

[ Source](https://github.com/psecio/pwdcheck)[ Packagist](https://packagist.org/packages/psecio/pwdcheck)[ Docs](https://github.com/psecio/pwdcheck.git)[ RSS](/packages/psecio-pwdcheck/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Pwdcheck : A password strength checker
======================================

[](#pwdcheck--a-password-strength-checker)

[![Packagist Version](https://camo.githubusercontent.com/4a8b683942fcc462d1ddafb4ff6a89a4bffef74820119feb688c593b118ed4b0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70736563696f2f707764636865636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/psecio/pwdcheck)[![Build Status](https://camo.githubusercontent.com/ce25d8218aab09081c7c527f5bcb17c7c4d39081ac6ac5dc27d9bc328888b97a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f70736563696f2f707764636865636b2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/psecio/pwdcheck)

The `Pwdcheck` tool uses the Wolfram Alpha method for estimating the strength of a password. It goes through a set of several checks to give the password a "score":

- 0-60: Very Weak
- 60-70: Weak
- 70-80: Fair
- 80-90: Strong
- 90-100: Very Strong

#### Installation

[](#installation)

You can use Composer to install `Pwdcheck`:

```
{
	"require": {
		"psecio/pwdcheck": "1.*"
	}
}

```

#### Usage

[](#usage)

Usage of the tool is simple and you can either fetch the text version of the strength (ex. "Very Weak") or a numeric representation from zero through four:

```
