PHPackages                             owenvoke/mnemonics-php - 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. owenvoke/mnemonics-php

ActiveLibrary

owenvoke/mnemonics-php
======================

A mnemonics generator for PHP 7.4+

v2.0.0(5y ago)44.0k↑150%4[2 issues](https://github.com/owenvoke/mnemonics-php/issues)[1 PRs](https://github.com/owenvoke/mnemonics-php/pulls)1MITPHPPHP ^7.4 || ^8.0CI passing

Since Jan 24Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/owenvoke/mnemonics-php)[ Packagist](https://packagist.org/packages/owenvoke/mnemonics-php)[ Fund](https://ecologi.com/owenvoke?gift-trees)[ GitHub Sponsors](https://github.com/owenvoke)[ RSS](/packages/owenvoke-mnemonics-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (4)Used By (1)

Mnemonics
=========

[](#mnemonics)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4e078f17531d9a9db939d85f0b0d715b4f040bf4b923e0f2a6c983f7fc3a6386/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f77656e766f6b652f6d6e656d6f6e6963732d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/owenvoke/mnemonics-php)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/be3932a0f9b64a7604afd33ae7dfb7323c27e7025989aa27d3db492f75aee244/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6f77656e766f6b652f6d6e656d6f6e6963732d7068702f74657374732e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265266c6162656c3d5465737473)](https://github.com/owenvoke/mnemonics-php/actions)[![Static Analysis](https://camo.githubusercontent.com/169af4b6b570cfa2161cdcef412f471078ab7a81ccc840b83ae504c9d312c211/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6f77656e766f6b652f6d6e656d6f6e6963732d7068702f7374617469632e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265266c6162656c3d537461746963253230416e616c79736973)](https://github.com/owenvoke/mnemonics-php/actions/workflows/static.yml)[![Total Downloads](https://camo.githubusercontent.com/a850212006ca80da4f19bad880a83b710129ee11a58ff0ac6aaf55a7fb0c319b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f77656e766f6b652f6d6e656d6f6e6963732d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/owenvoke/mnemonics-php)[![Buy us a tree](https://camo.githubusercontent.com/910e097fe46a40add8f3484705ecbc26dc047df84b2fef027405f47408023d76/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54726565776172652d2546302539462538432542332d6c69676874677265656e3f7374796c653d666c61742d737175617265)](https://ecologi.com/owenvoke?gift-trees)

A mnemonics generator for PHP 8.4+

Install
-------

[](#install)

Via Composer

```
composer require owenvoke/mnemonics-php
```

Usage
-----

[](#usage)

**Convert a string to a mnemonic**

```
use OwenVoke\Mnemonics\Mnemonic;

$mnemonicGenerator = new Mnemonic(DefaultWordList::WORDS);
$mnemonicGenerator->toMnemonic('...');
```

**Convert a mnemonic to a string**

```
$mnemonicGenerator = new Mnemonic(DefaultWordList::WORDS);
$mnemonicGenerator->toEntropy(['...', '...']);
```

**Using the `make` method**

```
Mnemonic::make()->toMnemonic('...');
```

Change log
----------

[](#change-log)

Please see [GitHub Releases](https://github.com/owenvoke/mnemonics-php/releases) for more information on what has changed recently.

Testing
-------

[](#testing)

```
composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Owen Voke](https://github.com/owenvoke)
- [phpninjas](https://github.com/phpninjas)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Treeware
--------

[](#treeware)

You're free to use this package, but if it makes it to your production environment you are required to buy the world a tree.

It’s now common knowledge that one of the best tools to tackle the climate crisis and keep our temperatures from rising above 1.5C is to plant trees. If you support this package and contribute to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.

You can buy trees [here](https://ecologi.com/owenvoke?gift-trees).

Read more about Treeware at [treeware.earth](https://treeware.earth).

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance49

Moderate activity, may be stable

Popularity29

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

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

Total

3

Last Release

2091d ago

Major Versions

v1.0.1 → v2.0.02020-08-26

PHP version history (2 changes)v1.0.0PHP ^7.2

v2.0.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1899334?v=4)[Owen Voke](/maintainers/owenvoke)[@owenvoke](https://github.com/owenvoke)

---

Top Contributors

[![owenvoke](https://avatars.githubusercontent.com/u/1899334?v=4)](https://github.com/owenvoke "owenvoke (58 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/owenvoke-mnemonics-php/health.svg)

```
[![Health](https://phpackages.com/badges/owenvoke-mnemonics-php/health.svg)](https://phpackages.com/packages/owenvoke-mnemonics-php)
```

PHPackages © 2026

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