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

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

chuoke/bitcoin
==============

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

v1.1.1(9mo ago)010UnlicensePHP

Since Jul 31Pushed 9mo agoCompare

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

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

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/5ee7863912862018938ab7ae72a72b5904e2836111a7cf55be561a04b0de6b86/68747470733a2f2f706f7365722e707567782e6f72672f6368756f6b652f626974636f696e2f762f737461626c652e706e67)](https://packagist.org/packages/chuoke/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 chuoke/bitcoin`

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

[](#contributing)

All contributions are welcome. Please see \[[this page](https://github.com/chuoke/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

29

—

LowBetter than 59% of packages

Maintenance56

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

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

292d ago

### Community

Maintainers

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

---

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)")[![chuoke](https://avatars.githubusercontent.com/u/17611457?v=4)](https://github.com/chuoke "chuoke (3 commits)")[![flxstn](https://avatars.githubusercontent.com/u/6398498?v=4)](https://github.com/flxstn "flxstn (2 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)")[![DeftNerd](https://avatars.githubusercontent.com/u/3002275?v=4)](https://github.com/DeftNerd "DeftNerd (2 commits)")[![mathroc](https://avatars.githubusercontent.com/u/291531?v=4)](https://github.com/mathroc "mathroc (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)")[![Crypto2](https://avatars.githubusercontent.com/u/7625236?v=4)](https://github.com/Crypto2 "Crypto2 (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/chuoke-bitcoin/health.svg)](https://phpackages.com/packages/chuoke-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

20917.2M158](/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)

PHPackages © 2026

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