PHPackages                             mysof/password-check - 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. [Security](/categories/security)
4. /
5. mysof/password-check

ActiveLibrary[Security](/categories/security)

mysof/password-check
====================

Simple class to check if a provided password is clean using the haveibeenpwned.com API

1.1.0(1y ago)114.0k↓16.7%MITPHP

Since Jul 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mikegsmith76/password-check)[ Packagist](https://packagist.org/packages/mysof/password-check)[ RSS](/packages/mysof-password-check/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

mysof/password-check
====================

[](#mysofpassword-check)

This is a simple class to check if a password is clean utilising havibeenpwned.com API.

This API does not require authentication for password checks.

Example Usage
-------------

[](#example-usage)

This example utilises the Symfony HTTP Client, however any other client implementing \\Symfony\\Contracts\\HttpClient\\HttpClientInterface could be used in its place.

```
$checker = new \MySof\PasswordCheck(
    \Symfony\Component\HttpClient\HttpClient::create()
);

if ($checker->isSafe("password")) {
    print "Password is clean";
} else {
    print "Password has been pwned";
}

```

For further details of the API see

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1167 days

Total

2

Last Release

613d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5e79420e9bbf341e9e654445570dc6425c572c4bf5e34cbcc44625d295cd2069?d=identicon)[mail@mikegsmith.co.uk](/maintainers/mail@mikegsmith.co.uk)

---

Top Contributors

[![mikegsmith76](https://avatars.githubusercontent.com/u/6804090?v=4)](https://github.com/mikegsmith76 "mikegsmith76 (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mysof-password-check/health.svg)

```
[![Health](https://phpackages.com/badges/mysof-password-check/health.svg)](https://phpackages.com/packages/mysof-password-check)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41478.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

87117.5M63](/packages/bjeavons-zxcvbn-php)[illuminate/encryption

The Illuminate Encryption package.

9229.7M280](/packages/illuminate-encryption)[paragonie/hidden-string

Encapsulate strings in an object to hide them from stack traces

7410.6M39](/packages/paragonie-hidden-string)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
