PHPackages                             kieranajp/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. kieranajp/password-generator

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

kieranajp/password-generator
============================

Generates human-readable, but secure, passwords.

v2.0.1(8y ago)03.3k↑142.9%1MITPHPPHP &gt;=7.0

Since Dec 9Pushed 3y agoCompare

[ Source](https://github.com/kieranajp/generator)[ Packagist](https://packagist.org/packages/kieranajp/password-generator)[ RSS](/packages/kieranajp-password-generator/feed)WikiDiscussions master Synced 2d ago

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

Password Generator
==================

[](#password-generator)

[![codecov](https://camo.githubusercontent.com/e258b013bc4ef20a3bb2c40e8c88999ea0df7e8d9f9d2b295223ca4d52781ba5/68747470733a2f2f636f6465636f762e696f2f67682f6b696572616e616a702f67656e657261746f722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/kieranajp/generator)

A teeny library to generate memorable yet secure passwords.

Why?
----

[](#why)

- Existing password managers didn't suit the needs I had for this project, or required you to source your own external wordlist
- I've hacked Faker into a password generator for typeable passwords
    - The project I'm using this in requires secure, generated passwords that are easy to type

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

[](#installation)

Requires PHP 7.0+. Install with Composer.

```
$ composer require kieranajp/password-generator
```

If you require PHP 5.3 - 5.6 support, install v1.

Example usage
-------------

[](#example-usage)

To quickly try this out, you can run `php example.php`. This file contains the basic usage.

```
require 'vendor/autoload.php';
$g = new \Kieranajp\Generator\Generator();
$g->generate(); // [ "Reagan467$Lera^" ]
$g->generate(2); // [ "Christina835$Frami$", "Terrance103:Evie." ]
```

By default, passwords are of the following format: `word - number - symbol - word - symbol`. This can easily be changed as follows:

```
$g->setFormat("word:num:symbol")
```

The default list of symbols is easy to type by a less-savvy computer user on a standard QWERTY keyboard. Other symbols can be added with `$g->addSymbol('🤡')` and removed with `$g->removeSymbol('🤡')`.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 51.2% 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 ~137 days

Recently: every ~170 days

Total

6

Last Release

3172d ago

Major Versions

v1.1 → v2.02017-10-26

PHP version history (3 changes)v1.0PHP &gt;=5.4.0

v1.0.2PHP &gt;=5.3.3

v2.0PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/986acba5713cdb47bd0f0e9b0e7988f3b4a2cc43f40bdcbb9820a64f79d6516d?d=identicon)[kieranajp](/maintainers/kieranajp)

---

Top Contributors

[![kieranajp](https://avatars.githubusercontent.com/u/681426?v=4)](https://github.com/kieranajp "kieranajp (21 commits)")[![Steve-Speechlink](https://avatars.githubusercontent.com/u/16289646?v=4)](https://github.com/Steve-Speechlink "Steve-Speechlink (16 commits)")[![edelarose](https://avatars.githubusercontent.com/u/6604537?v=4)](https://github.com/edelarose "edelarose (4 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[bheller/images-generator

Generator of placeholder images for Faker

573.1M3](/packages/bheller-images-generator)[digilist/snakedumper

4946.0k](/packages/digilist-snakedumper)[swekaj/cron-expression-generator

Generate valid cron expressions.

1169.6k1](/packages/swekaj-cron-expression-generator)[hydreflab/jedi-faker

Faker extension for Star Wars junkie

1430.5k1](/packages/hydreflab-jedi-faker)[gourmet/faker

Faker support for CakePHP 3

189.4k1](/packages/gourmet-faker)[andrefigueira/blog-article-faker

Generate random blog article titles and content (including markdown) using faker

1415.0k](/packages/andrefigueira-blog-article-faker)

PHPackages © 2026

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