PHPackages                             nyra/bip39 - 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. nyra/bip39

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

nyra/bip39
==========

An implementation of BIP-39 (Deterministic Mnemonic Code Words) in PHP

1.0.0(7mo ago)032↓50%MITPHPPHP ^8.2

Since Sep 22Pushed 7mo agoCompare

[ Source](https://github.com/nyra-dev/bip39)[ Packagist](https://packagist.org/packages/nyra/bip39)[ RSS](/packages/nyra-bip39/feed)WikiDiscussions main Synced 1mo ago

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

BIP39 (Mnemonic code for generating deterministic keys)
=======================================================

[](#bip39-mnemonic-code-for-generating-deterministic-keys)

PHP implementation of [BIP-0039](./bip-0039.mediawiki) supporting:

- Generate mnemonic (12–24 words) from secure random entropy
- Convert provided entropy (hex) to mnemonic
- Convert mnemonic back to original entropy (checksum verified)
- Derive seed (512-bit) from mnemonic + optional passphrase (PBKDF2-HMAC-SHA512 / 2048 rounds)
- Validate mnemonics
- All official BIP-39 wordlists (English, Chinese (Simplified &amp; Traditional), Czech, French, Italian, Japanese, Korean, Portuguese, Spanish)
- Unicode NFKD normalization (when `ext-intl` is available)

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

[](#installation)

```
composer require nyra/bip39
```

(For development / running tests clone the repo and run `composer install`.)

Optional: install `ext-intl` for full Unicode NFKD normalization; a graceful fallback is used if missing.

Usage
-----

[](#usage)

```
