PHPackages                             jundayw/bip39-sdk-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jundayw/bip39-sdk-php

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

jundayw/bip39-sdk-php
=====================

a php sdk of package for bip39

v1.0.0(4y ago)138MITPHPPHP &gt;=7.2.0

Since Dec 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/jundayw/bip39-sdk-php)[ Packagist](https://packagist.org/packages/jundayw/bip39-sdk-php)[ RSS](/packages/jundayw-bip39-sdk-php/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

安装方法
====

[](#安装方法)

命令行下, 执行 composer 命令安装:

```
composer require jundayw/bip39-sdk-php

```

WordList
--------

[](#wordlist)

```
use Jundayw\Bip39\WordList;

// locale etc:en|fr|it|zh|ja|ko|es
$wordList = new WordList();

// get the word for a index
echo "WordList 1: index=999  : " . $wordList->getWord(999) . PHP_EOL;
echo PHP_EOL;

// get the index for the word
echo "WordList 2: word=language  : " . $wordList->getIndex('language') . PHP_EOL;
echo PHP_EOL;
```

Bip39Mnemonic
-------------

[](#bip39mnemonic)

### create

[](#create)

```
use Jundayw\Bip32\Random;
use Jundayw\Bip39\WordList;
use Jundayw\Bip39\Bip39Mnemonic;

// locale etc:en|fr|it|zh|ja|ko|es
$wordList = new WordList();

$bip39 = new Bip39Mnemonic($wordList);
$mnemonic = $bip39->create(128);

echo "Bip39Mnemonic 1: create               : " . $mnemonic . PHP_EOL;
$entropy = $bip39->mnemonicToEntropy($mnemonic);
echo "Bip39Mnemonic 2: mnemonicToEntropy    : " . $entropy->getHex() . PHP_EOL;
$mnemonic = $bip39->entropyToMnemonic($entropy);
echo "Bip39Mnemonic 3: entropyToMnemonic    : " . $mnemonic . PHP_EOL;
echo PHP_EOL;
```

### random

[](#random)

```
use Jundayw\Bip32\Random;
use Jundayw\Bip39\WordList;
use Jundayw\Bip39\Bip39Mnemonic;

// locale etc:en|fr|it|zh|ja|ko|es
$wordList = new WordList();

$bip39 = new Bip39Mnemonic($wordList);

$random  = new Random();
$entropy = $random->bytes(16);

echo "Bip39Mnemonic 4: Random               : " . $entropy->getHex() . PHP_EOL;
$mnemonic = $bip39->entropyToMnemonic($entropy);
echo "Bip39Mnemonic 5: entropyToMnemonic    : " . $mnemonic . PHP_EOL;
$entropy = $bip39->mnemonicToEntropy($mnemonic);
echo "Bip39Mnemonic 6: mnemonicToEntropy    : " . $entropy->getHex() . PHP_EOL;
echo PHP_EOL;
```

Bip39SeedGenerator
------------------

[](#bip39seedgenerator)

```
use Jundayw\Bip32\Random;
use Jundayw\Bip39\WordList;
use Jundayw\Bip39\Bip39Mnemonic;
use Jundayw\Bip39\Bip39SeedGenerator;

// locale etc:en|fr|it|zh|ja|ko|es
$wordList = new WordList();

$bip39 = new Bip39Mnemonic($wordList);
$mnemonic = $bip39->create(128);

echo "Bip39Mnemonic 1: create               : " . $mnemonic . PHP_EOL;

$seedGenerator = new Bip39SeedGenerator();
$seed = $seedGenerator->getSeed($mnemonic);

echo "Bip39SeedGenerator 2: getSeed         : " . $seed->getHex() . PHP_EOL;
echo PHP_EOL;
```

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1604d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2da9b458375a1b7972b7c4d26a5bf8f3e48db305e8805da36f253956f33c5568?d=identicon)[jundayw](/maintainers/jundayw)

---

Top Contributors

[![jundayw](https://avatars.githubusercontent.com/u/16873970?v=4)](https://github.com/jundayw "jundayw (1 commits)")

---

Tags

bip39bip39-mnemonicbip39-phpbip39-sdkbip39-seedbip39-wordlist

### Embed Badge

![Health badge](/badges/jundayw-bip39-sdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/jundayw-bip39-sdk-php/health.svg)](https://phpackages.com/packages/jundayw-bip39-sdk-php)
```

###  Alternatives

[yavin/symfony-form-tree

create select field with indentation for tree structure

1591.1k1](/packages/yavin-symfony-form-tree)[spatie/laravel-help-space

Integrate Helpspace in your Laravel app

2333.7k](/packages/spatie-laravel-help-space)

PHPackages © 2026

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