Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Bech32 Laravel Package

bitwasp/bech32

A pure PHP implementation of bech32 and native SegWit address encoding. Use it standalone to encode and decode bech32 strings, including native SegWit addresses, in legacy codebases that have not yet upgraded to bitwasp/bitcoin.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature enablement: Bitcoin/crypto wallet functionality — generating and validating native SegWit (bech32) addresses, encoding/decoding BIP-173 strings, and producing QR/invoice payloads for a Laravel app.
  • Build vs. buy: Strong case for buy (or vendor) over build. Bech32 requires a checksum algorithm (BCH codes) and HRP handling that is easy to get subtly wrong; a small, permissively licensed library removes that risk from the critical path.
  • Roadmap input: Relevant only if crypto payments, custody, tipping, or address-book features are on the roadmap. If the product stays fiat-only, this is not a dependency worth carrying.
  • Use cases to scope: validating a user-pasted BTC address before a withdrawal, deriving display addresses for deposits, and normalizing mixed-case addresses for storage.
  • Risk gating: Its maturity signals (README-only, 12 stars, 0 dependents, EOL PHP targets, Travis CI) should trigger a vendor-review decision before it lands in a payment-critical path.

When to Consider This Package

Adopt when:

  • You are building on an existing Bit-Wasp/Bitcoin PHP stack (this package is explicitly positioned as a transitional shim for legacy codebases).
  • Your runtime is PHP 5.6–7.2 and you cannot yet move off it.
  • You need a pure-PHP, extension-free encoder with no Composer dependency tree — attractive for constrained or audited deployments.
  • Licensing matters: Unlicense is effectively public domain, so no attribution or copyleft obligations.

Look elsewhere when:

  • You run PHP 8.x / Laravel 9+. The README caps support at 7.2, which is end-of-life; expect compatibility friction and no upstream fixes.
  • You need bech32m / Taproot support — not mentioned in the README.
  • You require active maintenance, security patching, or a CVE response path. Zero dependents and README-level maturity mean no community backstop.
  • You need audited or widely adopted crypto primitives; consider bitwasp/bitcoin itself or a maintained alternative, and wrap whichever you choose behind an internal AddressCodec interface.

How to Pitch It (Stakeholders)

For executives: This is a tiny, public-domain-licensed utility that lets us handle modern Bitcoin addresses without writing cryptographic checksum code ourselves. Cost is near zero and it removes a class of "we shipped a wrong address" bugs. The trade-off is maintenance risk: the project is small, lightly used, and targets older PHP versions, so I'd recommend it only as a wrapped, pinned dependency — not as a long-term platform commitment. Decision needed: is crypto address support on the roadmap at all?

For engineering: Pure PHP, no extensions, deterministic bech32 encode/decode plus SegWit address formatting. Two caveats: (1) it supports PHP 5.6–7.2 only, so PHP 8 compatibility is on us; (2) it is a transitional shim intended to be absorbed into bitwasp/bitcoin. Proposal: wrap it behind an internal codec interface with our own tests against BIP-173 vectors, pin the version, and revisit if we move to PHP 8 or need bech32m.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
adachsoft/php-code-style