PHPackages                             doxadoxa/restore-phrase-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. [Security](/categories/security)
4. /
5. doxadoxa/restore-phrase-generator

ActiveLibrary[Security](/categories/security)

doxadoxa/restore-phrase-generator
=================================

Restore phrase generator for passwords inspired by BIP-39 from Bitcoin Core.

133PHPCI failing

Since Jan 22Pushed 6y ago1 watchersCompare

[ Source](https://github.com/doxadoxa/restore-phrase-generator)[ Packagist](https://packagist.org/packages/doxadoxa/restore-phrase-generator)[ RSS](/packages/doxadoxa-restore-phrase-generator/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Restore phrase generator
------------------------

[](#restore-phrase-generator)

[![Total Downloads](https://camo.githubusercontent.com/91abc4439622367a44defa31bc645a0bc9299687c335c2e15498d84f190419c4/68747470733a2f2f706f7365722e707567782e6f72672f646f7861646f78612f726573746f72652d7068726173652d67656e657261746f722f642f746f74616c2e737667)](https://packagist.org/packages/doxadoxa/restore-phrase-generator)[![Latest Stable Version](https://camo.githubusercontent.com/859b8ec35f8d9934959b09e7271dd46a7a5867e56599da601503d2d50e2fcca2/68747470733a2f2f706f7365722e707567782e6f72672f646f7861646f78612f726573746f72652d7068726173652d67656e657261746f722f762f737461626c652e737667)](https://packagist.org/packages/doxadoxa/restore-phrase-generator)[![License](https://camo.githubusercontent.com/0fc113a8ad411a4b3f6f80377e3eda1fbf6249283774dc5518b0c04236da7a27/68747470733a2f2f706f7365722e707567782e6f72672f646f7861646f78612f726573746f72652d7068726173652d67656e657261746f722f6c6963656e73652e737667)](https://packagist.org/packages/doxadoxa/restore-phrase-generator)

Small PHP library for generating a phrase for password restoring.

Inspired by BIP-39 from Bitcoin Core.

### How to install

[](#how-to-install)

Just use Composer:

```
composer require doxadoxa/restore-phrase-generator
```

### How to use

[](#how-to-use)

Simply you can work with library via facade-helper-singleton:

```
use Doxadoxa\Phrase;
$phrase = Phrase::generate("123456");
// about basket book speak plug
$restore = Phrase::decode( $phrase );
// 123456
```

Or if you have to be more flexible, you can use `Generator` class instead:

```
use Doxadoxa\Generator\Generator;
$generator = new Generator("wordlist.txt");
$result = $generator->generate("123456");
// about basket book speak plug
$generator->decode( $result );
// 123456
```

You allow to make you own wordlist in file (separated with `\n`) and provide path to file in `Generator` constructor.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

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.

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/doxadoxa-restore-phrase-generator/health.svg)

```
[![Health](https://phpackages.com/badges/doxadoxa-restore-phrase-generator/health.svg)](https://phpackages.com/packages/doxadoxa-restore-phrase-generator)
```

###  Alternatives

[phpids/phpids

PHPIDS (PHP-Intrusion Detection System) is a simple to use, well structured, fast and state-of-the-art security layer for your PHP based web application

791150.0k2](/packages/phpids-phpids)[paragonie/ecc

PHP Elliptic Curve Cryptography library

25866.3k44](/packages/paragonie-ecc)[nicobleiler/php-passphrase

Passphrase generator with Laravel integration, inspired by Bitwarden. Uses the EFF long word list by default with support for custom wordlists.

4912.6k](/packages/nicobleiler-php-passphrase)[dwgebler/encryption

Encryption wrapper for PHP using libsodium — simple API for symmetric and asymmetric encryption, password hashing, digital signing, and message authentication.

317.5k](/packages/dwgebler-encryption)

PHPackages © 2026

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