PHPackages                             cryptothree/bitcoin - 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. cryptothree/bitcoin

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

cryptothree/bitcoin
===================

PHP Bitcoin library with functions for transactions, signatures, serialization, Random/Deterministic ECDSA keys, blocks, RPC bindings

v1.1.1(8mo ago)0677↓50%11UnlicensePHP

Since Aug 19Pushed 8mo agoCompare

[ Source](https://github.com/cryptothree/bitcoin-php)[ Packagist](https://packagist.org/packages/cryptothree/bitcoin)[ Docs](https://github.com/cryptothree/bitcoin-php)[ RSS](/packages/cryptothree-bitcoin/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (12)Versions (4)Used By (1)

Bitcoin
-------

[](#bitcoin)

[![Build Status](https://camo.githubusercontent.com/9095f9dc72fbc4a98c4698a451a3eafe42614db93f5e46a0a50edf0b7c3185e3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6269742d776173702f626974636f696e2d7068702f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/bit-wasp/bitcoin-php/build-status/master)[![Code Coverage](https://camo.githubusercontent.com/8b8dc51b681f539cfe64ff901727c8feb221f3f568fe63c97380cc9250e98d1b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6269742d776173702f626974636f696e2d7068702f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/bit-wasp/bitcoin-php/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c405569eb219a0affd32a4c9182f1b619a1af5589df3850966ec699cddb20df1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4269742d576173702f626974636f696e2d7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Bit-Wasp/bitcoin-php/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/ebaed7b66182582b1d067ded3279917464a8ae4c5810c94095e125a80fdbfd62/68747470733a2f2f706f7365722e707567782e6f72672f70726f746f6e6c6162732f626974636f696e2f762f737461626c652e706e67)](https://packagist.org/packages/protonlabs/bitcoin)

This repository contains an implementation of Bitcoin using mostly pure PHP.

> This repository is a fork of [Bit-Wasp/bitcoin-php](https://github.com/Bit-Wasp/bitcoin-php) with modern PHP compatibility.

*Warning*: This library does not support 32-bit installs of PHP. Please also note that composer is the only supported installation method.

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

[](#installation)

You can install this library via Composer: `composer require protonlabs/bitcoin`

Contributing
------------

[](#contributing)

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

Documentation
-------------

[](#documentation)

Check out the beginnings of the documentation for the library: \[[Introduction](doc/documentation/Introduction.md)\]

Presently supported:
--------------------

[](#presently-supported)

- Blocks, headers, and merkle blocks and bloom filters
- P2SH &amp; Segregated witness scripts
- An adaptable elliptic-curve library, using \[[PhpEcc](https://github.com/mdanter/phpecc)\] by default, or libsecp256k1 if the bindings are found
- Support for building, parsing, signing/validating transactions
- Deterministic signatures (RFC6979)
- BIP32 and electrum (older type I) deterministic key algorithms
- BIP39, and the older electrum seed format.
- ScriptFactory for common input/output types, parser, interpreter, and classifiers
- Supports bindings to libbitcoinconsensus
- Bindings to Stratum (electrum) servers

Other projects
==============

[](#other-projects)

- [buffertools-php](https://github.com/Bit-Wasp/buffertools-php) - Toolkit for working with binary data in PHP
- [ext-secp256k1](https://github.com/Bit-Wasp/secp256k1-php) - PHP bindings to libsecp256k1
- [ext-bitcoinconsensus](https://github.com/Bit-Wasp/bitcoinconsensus-php) - PHP bindings to libbitcoinconsensus
- [bitcoin-p2p-php](https://github.com/Bit-Wasp/bitcoin-p2p-php) - PHP implementation of bitcoin P2P messaging using reactphp
- [stratum-php](https://github.com/Bit-Wasp/stratum-php) - PHP implementation of the stratum protocol using reactphp
- [electrum-discovery-php](https://github.com/Bit-Wasp/electrum-discovery-php) - Electrum server discovery (over IRC) using reactphp
- [node-php](https://github.com/Bit-Wasp/node-php) - A toy project (really just for fun) a full node using bitcoin-p2p-php
- [bip70-php](https://github.com/bip70/bip70-php) - A BIP70 (payment requests) implementation for PHP

Supporters
----------

[](#supporters)

This library is a 100% open source project. We do not receive any funding from the industry, nor provide paid support or development of features. That said, we are grateful for our supporters who provide free access for open source projects:

[![JetBrains](https://avatars0.githubusercontent.com/u/878437?s=200&v=4)](https://www.jetbrains.com/)

Thanks to [JetBrains](https://www.jetbrains.com/) for supporting the project through sponsoring some [All Products Packs](https://www.jetbrains.com/products.html) within their [Free Open Source License](https://www.jetbrains.com/buy/opensource/) program.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance62

Regular maintenance activity

Popularity20

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.1% 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

Every ~193 days

Total

3

Last Release

242d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fa755f2e8f308889d7fd493048be77d6116253c6bc187f5aef33746f85b74ade?d=identicon)[CryptoThree](/maintainers/CryptoThree)

---

Top Contributors

[![afk11](https://avatars.githubusercontent.com/u/5617245?v=4)](https://github.com/afk11 "afk11 (1236 commits)")[![rubensayshi](https://avatars.githubusercontent.com/u/649160?v=4)](https://github.com/rubensayshi "rubensayshi (49 commits)")[![BafS](https://avatars.githubusercontent.com/u/588205?v=4)](https://github.com/BafS "BafS (11 commits)")[![willgriffin](https://avatars.githubusercontent.com/u/590602?v=4)](https://github.com/willgriffin "willgriffin (10 commits)")[![nmarley](https://avatars.githubusercontent.com/u/1735354?v=4)](https://github.com/nmarley "nmarley (5 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (4 commits)")[![cryptothree](https://avatars.githubusercontent.com/u/5502228?v=4)](https://github.com/cryptothree "cryptothree (4 commits)")[![olegabr](https://avatars.githubusercontent.com/u/2850808?v=4)](https://github.com/olegabr "olegabr (2 commits)")[![Vasiliy-Bondarenko](https://avatars.githubusercontent.com/u/5263184?v=4)](https://github.com/Vasiliy-Bondarenko "Vasiliy-Bondarenko (2 commits)")[![flxstn](https://avatars.githubusercontent.com/u/6398498?v=4)](https://github.com/flxstn "flxstn (2 commits)")[![mathroc](https://avatars.githubusercontent.com/u/291531?v=4)](https://github.com/mathroc "mathroc (2 commits)")[![DeftNerd](https://avatars.githubusercontent.com/u/3002275?v=4)](https://github.com/DeftNerd "DeftNerd (2 commits)")[![murich](https://avatars.githubusercontent.com/u/619908?v=4)](https://github.com/murich "murich (2 commits)")[![tooruu](https://avatars.githubusercontent.com/u/40900803?v=4)](https://github.com/tooruu "tooruu (1 commits)")[![bryant1410](https://avatars.githubusercontent.com/u/3905501?v=4)](https://github.com/bryant1410 "bryant1410 (1 commits)")[![DaShak](https://avatars.githubusercontent.com/u/1576844?v=4)](https://github.com/DaShak "DaShak (1 commits)")[![zilveer](https://avatars.githubusercontent.com/u/570164?v=4)](https://github.com/zilveer "zilveer (1 commits)")[![dubuqingfeng](https://avatars.githubusercontent.com/u/6101854?v=4)](https://github.com/dubuqingfeng "dubuqingfeng (1 commits)")[![hauptmedia](https://avatars.githubusercontent.com/u/10770719?v=4)](https://github.com/hauptmedia "hauptmedia (1 commits)")[![poldridge](https://avatars.githubusercontent.com/u/6935589?v=4)](https://github.com/poldridge "poldridge (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/cryptothree-bitcoin/health.svg)

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

###  Alternatives

[bitwasp/bitcoin

PHP Bitcoin library with functions for transactions, signatures, serialization, Random/Deterministic ECDSA keys, blocks, RPC bindings

1.1k533.2k43](/packages/bitwasp-bitcoin)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M157](/packages/orchestra-canvas)[protonlabs/bitcoin

PHP Bitcoin library with functions for transactions, signatures, serialization, Random/Deterministic ECDSA keys, blocks, RPC bindings

33187.4k8](/packages/protonlabs-bitcoin)[symfony/asset-mapper

Maps directories of assets &amp; makes them available in a public directory with versioned filenames.

1656.9M131](/packages/symfony-asset-mapper)[internal/dload

Downloads binaries.

98142.7k10](/packages/internal-dload)

PHPackages © 2026

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