PHPackages                             luzrain/pwgen - 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. luzrain/pwgen

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

luzrain/pwgen
=============

PWGen is a library which aims to clone the GNU pwgen functionality.

v1.0.0(3y ago)09.8k↓39.3%1GPL-2.0-onlyPHPPHP &gt;=8.0.0

Since Nov 23Pushed 2y agoCompare

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

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

PWGen — generate pronounceable passwords with PHP
=================================================

[](#pwgen--generate-pronounceable-passwords-with-php)

[![PHP ^8.0](https://camo.githubusercontent.com/02b88f38c75815e66c826702282fecc109c344fb267e803750808939ea6cfbbb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e302d3737376262332e7376673f7374796c653d666c6174)](https://www.php.net/releases/8.0/)[![Tests Status](https://camo.githubusercontent.com/e17dc6bf2fd30584bf7e1a7cc23e9a17eb3df93e6782fd8d154f7aec16e26e81/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c757a7261696e2f707767656e2f74657374732e79616d6c3f6272616e63683d6d6173746572)](../../actions/workflows/tests.yaml)

PWGen is a library which aims to clone the GNU pwgen functionality. The PWGen library generates passwords which are designed to be easily memorized by humans, while being as secure as possible. Human-memorable passwords are never going to be as secure as completely random passwords. In particular, passwords generated by pwgen without the `secure` option should not be used in places where the password could be attacked via a brute-force attack. On the other hand, completely randomly generated passwords have a tendency to be written down, and are subject to being compromised in that fashion.

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

[](#installation)

```
$ composer require luzrain/pwgen

```

Usage
-----

[](#usage)

```
