PHPackages                             passwordgenerator/password-generator - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. passwordgenerator/password-generator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

passwordgenerator/password-generator
====================================

1.0.0(5y ago)24MITPHPPHP ^5.5CI failing

Since May 28Pushed 5y agoCompare

[ Source](https://github.com/walegbenga/php_password_generator)[ Packagist](https://packagist.org/packages/passwordgenerator/password-generator)[ RSS](/packages/passwordgenerator-password-generator/feed)WikiDiscussions master Synced 1w ago

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

PHP Password Generator Library Usage
====================================

[](#php-password-generator-library-usage)

To be able to use this library in your project, follow the steps below

Requirement(s)
--------------

[](#requirements)

- php 5.5 &gt;=
- Composer (for installing the library)
- Gitbash (for running the composer from the command line)

Installing the package
----------------------

[](#installing-the-package)

To install the package in your project, run this command from the command line interface(cli) using gitbash `composer require walegbenga/php_password_generator`. This will download the library into your project.

Using the library
-----------------

[](#using-the-library)

To use the library in your project, require the composer autoload script into your project like this `require __DIR__ . '/vendor/autoload.php`You can now use the library to generate the Random password for your users like this

```
$passGen = new \SecurePassword\PasswordGenerator($source, 4, CACHE_DIR);
echo $passGen->generate();

```

Complete example
----------------

[](#complete-example)

```
include __DIR__ . '/vendor/autoload.php';// Generally, this should be the relative path to the **vendor** folder
$passGen = new \SecurePassword\PasswordGenerator($source, 4, CACHE_DIR);
echo $passGen->generate();

```

### Where the library is useful

[](#where-the-library-is-useful)

You can use this library to

- Generate hard to guess passwords for your users
- Use it to generate a temporary passwords for users who forgot there passsword
- Use it to generate a token for users
- Use it to generate Serial Number(sn) for your users and so on and so on Remember, in programming, your imagination is your limitation

### NB

[](#nb)

The above example is just a basic usage of using the library.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

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

Unknown

Total

1

Last Release

2181d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d511a0de745b78a6ff2c189c3c0d38cca7fcaa08686b2317c2eb76583ed04b08?d=identicon)[walegbenga](/maintainers/walegbenga)

---

Top Contributors

[![gbengasupowale](https://avatars.githubusercontent.com/u/48821090?v=4)](https://github.com/gbengasupowale "gbengasupowale (12 commits)")

---

Tags

passwordpassword-generatorphpphp-password-generatorstrong-password

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/passwordgenerator-password-generator/health.svg)

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

###  Alternatives

[webarchitect609/bitrix-user-type

Set of custom Bitrix user property types and basic auxiliary functionality to help develop new types as easy and fast as it possible.

1418.4k1](/packages/webarchitect609-bitrix-user-type)

PHPackages © 2026

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