PHPackages                             kettasoft/pass-audit - 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. kettasoft/pass-audit

ActiveLibrary[Security](/categories/security)

kettasoft/pass-audit
====================

PassAudit is a powerful and efficient Laravel package designed to enhance the security of user passwords in your application. This package provides a comprehensive solution to prevent users from reusing their previous passwords, thereby mitigating the risk of unauthorized access.

v1.0.0(1y ago)17MITPHP

Since Jul 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/kettasoft/PassAudit)[ Packagist](https://packagist.org/packages/kettasoft/pass-audit)[ RSS](/packages/kettasoft-pass-audit/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

PassAudit
=========

[](#passaudit)

 [ ![Latest Version](https://camo.githubusercontent.com/af57f6a46211d8ebbb069c212e016c955e4a7d201265eb2b041b181874e7b7b6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6b65747461736f66742f5061737341756469742e7376673f7374796c653d666c61742d737175617265) ](https://github.com/kettasoft/PassAudit/releases) [ ![Build Status](https://camo.githubusercontent.com/4a7148221b5bfd87934c9a184edb44c85ef3c13c02c216329e72ef1cbba41729/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6b65747461736f66742f5061737341756469742f6d61737465722e7376673f7374796c653d666c61742d737175617265) ](https://travis-ci.org/kettasoft/PassAudit) [ ![Total Downloads](https://camo.githubusercontent.com/73abadd6b693b40f3ffb774d33e2b1b85b5ca4eb0c35e6d2f8e6efc04e89d0cd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b65747461736f66742f5061737341756469742e7376673f7374796c653d666c61742d737175617265) ](https://packagist.org/packages/kettasoft/PassAudit)

PassAudit is a powerful and efficient Laravel package designed to enhance the security of user passwords in your application. This package provides a comprehensive solution to prevent users from reusing their previous passwords, thereby mitigating the risk of unauthorized access.

Installation
------------

[](#installation)

You can install the package via Composer:

```
composer require kettasoft/pass-audit
```

Configuration
-------------

[](#configuration)

1. **Register Service Provider**

- Add the service provider to the config/app.php file in the providers array:

```
'providers' => [
    Kettasoft\PassAudit\PassAuditServiceProvider::class,
    ...
],
```

**Publish Configuration**

- Publish the package configuration file:

```
php artisan vendor:publish --provider="Kettasoft\PassAudit\PassAuditServiceProvider" --tag="config"

```

- This will create a passaudit.php file in your config directory where you can customize the settings.

**Publish Migration**

- Publish the migration file:

```
php artisan vendor:publish --provider="Kettasoft\PassAudit\PassAuditServiceProvider" --tag="migrations"

```

Then, run the migration:

```
php artisan migrate

```

Usage
-----

[](#usage)

**Use Trait in User Model**

Add the `PassAudit` trait to your `User` model:

```
namespace App\Models;

use Illuminate\Foundation\Auth\User as Authenticatable;
use Kettasoft\PassAudit\PassAudit;

class User extends Authenticatable
{
    use PassAudit;

    //...
}
```

**Implement Interface to User Model**

- Ensure your `User` model implements the `HasPassAuditChecker`:

```
namespace App\Models;

use Kettasoft\PassAudit\Contracts\HasPassAuditChecker;

class User extends Authenticatable implements HasPassAuditChecker
{
    //
}
```

**Use Rule Validation in Request**

- You can use the `PassAuditRule` in your request validation to prevent users from reusing their previous passwords:

```
namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;
use Kettasoft\PassAudit\Rules\PassAuditRule;

class UpdatePasswordRequest extends FormRequest
{
    public function rules()
    {
        return [
            'password' => ['required', 'string', 'min:8', new PassAuditRule($this->user())],
        ];
    }
}
```

### Customization

[](#customization)

You can customize the behavior of the package by modifying the `passaudit.php` configuration file. Options include:

- The number of previous passwords to keep track of
- The hashing algorithm to use

### Contributing

[](#contributing)

Thank you for considering contributing to PassAudit! Please read the contributing guide before making a pull request.

### License

[](#license)

PassAudit is open-sourced software licensed under the MIT license.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

662d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/514a1d3f5416af98e8f0174f21cd94d357204a98704e92fd37db2903b08e2057?d=identicon)[kettasoft](/maintainers/kettasoft)

---

Tags

checkercheckingpassauditpasswordpasswordssecurity

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/kettasoft-pass-audit/health.svg)

```
[![Health](https://phpackages.com/badges/kettasoft-pass-audit/health.svg)](https://phpackages.com/packages/kettasoft-pass-audit)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[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

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

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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