# Bit-Wasp/bitcoin-php

Bitcoin implementation in PHP

Repository: https://github.com/Bit-Wasp/bitcoin-php
Canonical: https://ross.abutalabs.com/products/bitcoin-php
Language: PHP
License: Unlicense
License Family: permissive
Topics: php, bitcoin, electrum, bip32, transaction, address, script, secp256k1
Last push: 2026-02-25T12:04:09+00:00

## Health v2 (maintenance only)
Score: 63/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 69, release rhythm 35, longevity 100
- inputs: {"age_days": 4182, "days_push": 189, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1077, forks 446 (observed 2026-08-28T04:03:29.727251+00:00)

## What it is
A PHP library implementing Bitcoin protocol primitives including blocks, transactions, scripts, and deterministic key algorithms (BIP32, BIP39, electrum seeds). It uses pure PHP with optional bindings to libsecp256k1 and libbitcoinconsensus for performance and validation.

## Use cases
- build and sign bitcoin transactions in php
- derive hierarchical deterministic wallets with bip32
- generate bip39 mnemonic seeds
- parse and validate bitcoin scripts
- create p2sh and segwit addresses
- verify transaction signatures with deterministic rfc6979 signing

## When to choose
- you need to work with bitcoin transactions, keys, or scripts from PHP
- you want a pure-PHP implementation without running a bitcoin node
- you need electrum seed or stratum protocol compatibility

## When to avoid
- you run 32-bit PHP
- you need a full node or P2P networking (see bitcoin-p2p-php instead)
- you need high-throughput signing without native secp256k1 bindings

## Facets
- artifact type: library
- maturity: maintenance
- function: cryptography, serialization, parser
- domain: blockchain, developer-tools
- platform: php
- tags: bitcoin, bip32, bip39, secp256k1, transactions, script, electrum, hd-wallets, cryptocurrency

## Member repositories
- Bit-Wasp/bitcoin-php (main) score 63

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:29.727251+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:53:12.782573+00:00, confidence not recorded.
  - readme: https://github.com/Bit-Wasp/bitcoin-php (fetched 2026-08-28T04:03:29.727251+00:00, sha 8cd6f76bc665)
- Data as of 2026-08-30T08:39:29.467469+00:00.
