PHPackages                             losthost/passg - 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. losthost/passg

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

losthost/passg
==============

A simple and useful password generator that can generate passwords of different symbol classes

v1.1.0(2y ago)0272MITPHP

Since Sep 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Datahider/passg)[ Packagist](https://packagist.org/packages/losthost/passg)[ RSS](/packages/losthost-passg/feed)WikiDiscussions master Synced 1mo ago

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

A Password Generator
====================

[](#a-password-generator)

Simple Usage
------------

[](#simple-usage)

```
use losthost\passg\Pass;

$new_password = Pass::generate();
```

It will generate a 14-symbol (it is max for Windows) password, that will not contain ambiguous symbols like 1 and l, O ans 0 etc. Also it will (or will not) contain only `_` as a special symbol (to simplify highligting the password by double click).

More complex usage
------------------

[](#more-complex-usage)

```
use losthost\passg\Pass;

$new_password = Pass::generate(4, '0123456789');
```

It will generate a 4-digit password (eg. a pin-code)

Very complex usage
------------------

[](#very-complex-usage)

```
use losthost\passg\Pass;

// Generate a 14-symbol password that contains at least 1 symbol of each class
$new_password_1 = Pass::generate(14, [
    Pass::ALL_LOWERCASE,
    Pass::ALL_UPPERCASE,
    Pass::ALL_DIGITS,
    Pass::ALL_SYMBOLS
]);
        // ex. P3H{nh"/|S2.?|

// Generate a 10-symbol password that contains at least 3 digits and 3 lowercase letters
$new_password_2 = Pass::generate(10, [
    Pass::CLEAN_DIGITS,
    Pass::CLEAN_LOWERCASE
], 3);
        // ex. 6kf5czqi86

// Generate a 4-digits password that contain at least 2 `5`
$new_password_3 = Pass::generate(4, [
    '012346789', '5'
], 2);
        // ex. 5751
```

TODO
----

[](#todo)

Now it seems nothing to do

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Every ~0 days

Total

2

Last Release

958d ago

### Community

Maintainers

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/losthost-passg/health.svg)

```
[![Health](https://phpackages.com/badges/losthost-passg/health.svg)](https://phpackages.com/packages/losthost-passg)
```

PHPackages © 2026

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