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

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

scriptoshi/bitcoin-php
======================

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

v2.0.1(1y ago)092UnlicensePHP

Since Mar 23Pushed 1y agoCompare

[ Source](https://github.com/scriptoshi/bitcoin-php)[ Packagist](https://packagist.org/packages/scriptoshi/bitcoin-php)[ Docs](https://github.com/scriptoshi/bitcoin-php)[ RSS](/packages/scriptoshi-bitcoin-php/feed)WikiDiscussions stripped-master Synced 1w ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

For the original repository, see github.com/scriptoshi/bitcoin-php.
-------------------------------------------------------------------

[](#for-the-original-repository-see-githubcomscriptoshibitcoin-php)

Bitcoin
-------

[](#bitcoin)

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

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

[](#installation)

You can install this library via Composer: `composer require scriptoshi/bitcoin-php`

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

[](#contributing)

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

- 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

###  Health Score

28

—

LowBetter than 51% of packages

Maintenance40

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

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

502d ago

### Community

Maintainers

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

---

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)")[![doersf](https://avatars.githubusercontent.com/u/6928955?v=4)](https://github.com/doersf "doersf (43 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)")[![olegabr](https://avatars.githubusercontent.com/u/2850808?v=4)](https://github.com/olegabr "olegabr (2 commits)")[![DeftNerd](https://avatars.githubusercontent.com/u/3002275?v=4)](https://github.com/DeftNerd "DeftNerd (2 commits)")[![Vasiliy-Bondarenko](https://avatars.githubusercontent.com/u/5263184?v=4)](https://github.com/Vasiliy-Bondarenko "Vasiliy-Bondarenko (2 commits)")[![murich](https://avatars.githubusercontent.com/u/619908?v=4)](https://github.com/murich "murich (2 commits)")[![flxstn](https://avatars.githubusercontent.com/u/6398498?v=4)](https://github.com/flxstn "flxstn (2 commits)")[![tkuska](https://avatars.githubusercontent.com/u/1619751?v=4)](https://github.com/tkuska "tkuska (1 commits)")[![zilveer](https://avatars.githubusercontent.com/u/570164?v=4)](https://github.com/zilveer "zilveer (1 commits)")[![bryant1410](https://avatars.githubusercontent.com/u/3905501?v=4)](https://github.com/bryant1410 "bryant1410 (1 commits)")[![Crypto2](https://avatars.githubusercontent.com/u/7625236?v=4)](https://github.com/Crypto2 "Crypto2 (1 commits)")[![DaShak](https://avatars.githubusercontent.com/u/1576844?v=4)](https://github.com/DaShak "DaShak (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)")[![ofumbi](https://avatars.githubusercontent.com/u/4081256?v=4)](https://github.com/ofumbi "ofumbi (1 commits)")[![poldridge](https://avatars.githubusercontent.com/u/6935589?v=4)](https://github.com/poldridge "poldridge (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k199.6M3.3k](/packages/composer-composer)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k257.0M27.3k](/packages/friendsofphp-php-cs-fixer)[symfony/symfony

The Symfony PHP framework

31.4k87.4M2.2k](/packages/symfony-symfony)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k39.6k](/packages/matomo-matomo)[symfony/asset-mapper

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

1669.5M274](/packages/symfony-asset-mapper)[pocketmine/pocketmine-mp

A server software for Minecraft: Bedrock Edition written in PHP

3.6k79.3k91](/packages/pocketmine-pocketmine-mp)

PHPackages © 2026

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