scriptoshi / bitcoin-php
PHP Bitcoin library with functions for transactions, signatures, serialization, Random/Deterministic ECDSA keys, blocks, RPC bindings
v2.0.1
2025-03-23 15:39 UTC
Requires
- php-64bit: >=8.0
- ext-bcmath: *
- ext-curl: *
- ext-gmp: *
- ext-json: *
- ext-mbstring: *
- bitwasp/buffertools: ^0.5.7
- composer/semver: ^3.4
- paragonie/ecc: ^2.4
Requires (Dev)
- phpunit/phpunit: ^12.0
This package is auto-updated.
Last update: 2025-03-23 15:43:25 UTC
README
Bitcoin
This repository contains an implementation of Bitcoin using mostly pure PHP.
Installation
You can install this library via Composer: composer require scriptoshi/bitcoin-php
Contributing
All contributions are welcome. Please see [this page] before you get started
Documentation
Check out the beginnings of the documentation for the library: [Introduction]
Presently supported:
- P2SH & Segregated witness scripts
- An adaptable elliptic-curve library, using [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