PHPackages                             bitwasp/bech32 - 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. bitwasp/bech32

ActiveLibrary

bitwasp/bech32
==============

Pure (no dependencies) implementation of bech32

v0.0.1(8y ago)12752.3k↑10.2%9[1 PRs](https://github.com/Bit-Wasp/bech32/pulls)20UnlicensePHP

Since Sep 25Pushed 4y ago2 watchersCompare

[ Source](https://github.com/Bit-Wasp/bech32)[ Packagist](https://packagist.org/packages/bitwasp/bech32)[ Docs](https://github.com/bit-wasp/bech32)[ RSS](/packages/bitwasp-bech32/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (6)Used By (20)

bech32

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/1527980de170d3933ac6813a57a90c4cb35706664daed0c254f5e07a63304631/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4269742d576173702f6265636833322f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Bit-Wasp/bech32/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/d80735955def0f68c6b0e299386a25a623b1ecf8910a937d9734f93212e50396/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4269742d576173702f6265636833322f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Bit-Wasp/bech32/?branch=master)[![Build Status](https://camo.githubusercontent.com/d116c9fe35f0c84b3d3191edfd24fe6b645c2876bdf96cd5ce66ee39553458f6/68747470733a2f2f7472617669732d63692e6f72672f4269742d576173702f6265636833322e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Bit-Wasp/bech32)

This package provides a pure implementation of bech32 and native segregated witness address encoding.

It will eventually replace the implementation in `bitwasp/bitcoin`but as yet its primary purpose is serving old codebases which have yet to upgrade.

Presently supports PHP version 5.6, 7.0-7.2 though future releases will deprecate 5.6 support. HHVM is NOT supported.

### Install

[](#install)

```
composer require bitwasp/bech32

```

### Contributing

[](#contributing)

All contributions are welcome. Please see \[[this page](https://github.com/Bit-Wasp/bech32/blob/master/CONTRIBUTING.md)\] before you get started

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity57

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

3024d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/763cdc5cc50414bacd4ff1080eede79432f7c3cc26a3d8aa9031b1537a8bd734?d=identicon)[thomaskerin](/maintainers/thomaskerin)

---

Top Contributors

[![afk11](https://avatars.githubusercontent.com/u/5617245?v=4)](https://github.com/afk11 "afk11 (5 commits)")

---

Tags

bech32bitcoinencoding

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/bitwasp-bech32/health.svg)

```
[![Health](https://phpackages.com/badges/bitwasp-bech32/health.svg)](https://phpackages.com/packages/bitwasp-bech32)
```

PHPackages © 2026

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