PHPackages                             kristos80/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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. kristos80/password-generator

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

kristos80/password-generator
============================

Secure, flexible password generator for PHP 8.2+

0.1.5(2mo ago)0230MITPHPPHP ^8.2CI passing

Since Apr 17Pushed 2mo ago1 watchersCompare

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

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

Password Generator for PHP 8.2+
===============================

[](#password-generator-for-php-82)

A modern, flexible, and secure password generator built for PHP 8.2+. Designed with configuration-first principles, it supports character-type rules, avoidance of consecutive characters, and rich presets out of the box.

✨ Features
----------

[](#-features)

- PHP 8.2+ with `readonly` and strong types
- Configurable character pools: lowercase, uppercase, numbers, symbols
- Range-based character counts via `PoolRange`
- Always start with a letter (optional)
- Avoid consecutive characters (enabled by default)
- Character exclusion (e.g., omit `l`, `1`, `0`, `O`)
- Built-in presets (safe, strong, human-friendly, dev)
- Pest-based test suite
- Clean Composer autoloading (PSR-4)

---

⚙ Installation
--------------

[](#-installation)

```
composer require kristos80/password-generator
```

---

📄 Usage
-------

[](#-usage)

### Basic Example

[](#basic-example)

```
