bitwasp / bitcoin
PHP Bitcoin library with functions for transactions, signatures, serialization, Random/Deterministic ECDSA keys, blocks, RPC bindings
Installs: 498 654
Dependents: 46
Suggesters: 0
Security: 0
Stars: 1 051
Watchers: 81
Forks: 419
Open Issues: 83
Requires
- php-64bit: >=7.0
- bitwasp/bech32: ^0.0.1
- bitwasp/buffertools: ^0.5.0
- composer/semver: ^1.4.0
- lastguest/murmurhash: v2.0.0
- mdanter/ecc: ^0.5.0
- pleonasm/merkle-tree: 1.0.0
Requires (Dev)
- ext-json: *
- bitwasp/bitcoinconsensus: v3.0.0
- bitwasp/secp256k1-php: ^v0.2.0
- nbobtc/bitcoind-php: v2.0.2
- phpunit/phpunit: ^5.4.0
- squizlabs/php_codesniffer: ^2.0.0
Suggests
- ext-bitcoinconsensus: The bitcoinconsensus library for safest possible script verification
- ext-secp256k1: The secp256k1 library for fast and safe elliptic curve operations
- 1.0.x-dev
- v1.0.4
- v1.0.2
- v1.0.1
- v1.0.0
- 0.0.35.x-dev
- v0.0.35.2
- v0.0.35.1
- v0.0.35.0
- 0.0.34.x-dev
- v0.0.34.5
- v0.0.34.4
- v0.0.34.3
- v0.0.34.2
- v0.0.34.1
- v0.0.34.1-dev
- v0.0.34.0
- 0.0.33.x-dev
- v0.0.33.3
- v0.0.33.2
- v0.0.33.1
- v0.0.33
- v0.0.32.1
- v0.0.32
- 0.0.31.x-dev
- v0.0.31.2
- v0.0.31.1
- v0.0.31
- 0.0.30.x-dev
- v0.0.30.3
- v0.0.30.2
- v0.0.30.1
- v0.0.30
- v0.0.29.1
- v0.0.29
- v0.0.28
- v0.0.27
- v0.0.26.3
- v0.0.26.2
- v0.0.26.1
- v0.0.26
- v0.0.25
- v0.0.24
- v0.0.23
- v0.0.22
- v0.0.21.2
- v0.0.21.1
- v0.0.21
- v0.0.20.2
- v0.0.20.1
- v0.0.20
- v0.0.19.4
- v0.0.19.3
- v0.0.19.2
- v0.0.19.1
- v0.0.19
- v0.0.18.1
- v0.0.18
- v0.0.17
- v0.0.16
- v0.0.15
- v0.0.14
- v0.0.13.2
- v0.0.13.1
- v0.0.13
- v0.0.12.3
- v0.0.12.2
- v0.0.12.1
- v0.0.12
- v0.0.11
- v0.0.10.2
- v0.0.10.1
- v0.0.10
- v0.0.9
- v0.0.8
- 0.0.7.x-dev
- v0.0.7.1
- v0.0.7
- v0.0.6
- v0.0.5
- v0.0.4
- v0.0.3
- 0.0.2
- 0.0.1
- dev-master
This package is auto-updated.
Last update: 2024-11-24 16:37:37 UTC
README
This repository contains an implementation of Bitcoin using mostly pure PHP.
Warning: This library does not support 32-bit installs of PHP. Please also note that composer is the only supported installation method.
Installation
You can install this library via Composer: composer require bitwasp/bitcoin
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:
- Blocks, headers, and merkle blocks and bloom filters
- 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
Other projects
- buffertools-php - Toolkit for working with binary data in PHP
- ext-secp256k1 - PHP bindings to libsecp256k1
- ext-bitcoinconsensus - PHP bindings to libbitcoinconsensus
- bitcoin-p2p-php - PHP implementation of bitcoin P2P messaging using reactphp
- stratum-php - PHP implementation of the stratum protocol using reactphp
- electrum-discovery-php - Electrum server discovery (over IRC) using reactphp
- node-php - A toy project (really just for fun) a full node using bitcoin-p2p-php
- bip70-php - A BIP70 (payment requests) implementation for PHP
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:
Thanks to JetBrains for supporting the project through sponsoring some All Products Packs within their Free Open Source License program.