PHPackages                             yalesov/password-generate - 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. yalesov/password-generate

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

yalesov/password-generate
=========================

Password generator

v1.2.0(9y ago)021ISCJavaScriptPHP &gt;=5.3.0

Since Jul 3Pushed 9y ago1 watchersCompare

[ Source](https://github.com/yalesov/password-generate)[ Packagist](https://packagist.org/packages/yalesov/password-generate)[ Docs](https://github.com/yalesov/password-generate)[ RSS](/packages/yalesov-password-generate/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (8)Used By (0)

password-generate
=================

[](#password-generate)

Password generators.

Based on actual use cases encountered in the wild.

- `mixed`: (alpha) + (num) + (symbol)
- `alphanum`: some systems don't allow symbols
- `num`: primarily those intended for phone usage

Usage
-----

[](#usage)

### Naked

[](#naked)

```
lib/* mode length
lib/* mode
lib/* length
lib/*

mode = m[ixed]|a[lphanum]|n[um] ; default mixed
length = (integer >= 3) ; default = 12
```

### npm

[](#npm)

```
npm install password-generate
```

```
let PasswordGenerate = require('password-generate')
console.log(PasswordGenerate.generate(mode, length))
console.log(PasswordGenerate.generate(mode))
console.log(PasswordGenerate.generate(length))
console.log(PasswordGenerate.generate())
```

### gem

[](#gem)

```
gem install password_generate
```

```
require 'password_generate'
p PasswordGenerate.generate mode, length
p PasswordGenerate.generate mode
p PasswordGenerate.generate length
p PasswordGenerate.generate
```

### composer

[](#composer)

```
composer require yalesov/password-generate
```

```
use password_generate\PasswordGenerate;
echo PasswordGenerate::generate($mode, $length);
echo PasswordGenerate::generate($mode);
echo PasswordGenerate::generate($length);
echo PasswordGenerate::generate();
```

### bash

[](#bash)

```
./password-generate.sh mode length
./password-generate.sh mode
./password-generate.sh length
./password-generate.sh
```

### perl

[](#perl)

```
./password-generate.pl mode length
./password-generate.pl mode
./password-generate.pl length
./password-generate.pl
```

Notes
-----

[](#notes)

### Symbol

[](#symbol)

Only using the underscore `_`.

Some don't allow fancier symbols, but the underscore seems accepted everywhere.

### Alpha

[](#alpha)

Assuming both uppercase and lowercase allowed.

The only contrary case I have seen is banks, which uses case-insensitive passwords - but then it doesn't disallow inputting both upper- and lower- case either.

### Num

[](#num)

Ever-present.

I haven't seen a system that disallow numeric inputs yet.

### First character

[](#first-character)

Is always an `alpha`.

Systems have various rules disallowing what is or is not allowed, but the alpha seems accepted everywhere.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~0 days

Total

7

Last Release

3646d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c284282a506ac3c908eda03eb11cc263a4457f2e3cc23cbe3e9b97830589e31?d=identicon)[yalesov](/maintainers/yalesov)

---

Top Contributors

[![yalesov](https://avatars.githubusercontent.com/u/20264293?v=4)](https://github.com/yalesov "yalesov (57 commits)")

### Embed Badge

![Health badge](/badges/yalesov-password-generate/health.svg)

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

###  Alternatives

[philipnewcomer/acf-unique-id-field

An ACF field which generates a unique ID value, intended for use in ACF Repeaters

4828.2k](/packages/philipnewcomer-acf-unique-id-field)[realrashid/cart

Meet Cart — your ultimate solution for seamless shopping cart functionality in Laravel applications. Cart simplifies the complexities of shopping cart operations, from product additions to total calculations, ensuring a frictionless user experience.

1104.0k](/packages/realrashid-cart)[midnite81/geolocation

A laravel package which wraps the IP Info DB and IP2Location Services

3725.3k](/packages/midnite81-geolocation)[bolt/bolt-extension-starter

103.3k](/packages/bolt-bolt-extension-starter)

PHPackages © 2026

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