Download the PHP package jorijn/bitcoin-bolt11 without Composer
On this page you can find all versions of the php package jorijn/bitcoin-bolt11. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jorijn/bitcoin-bolt11
More information about jorijn/bitcoin-bolt11
Files in jorijn/bitcoin-bolt11
Package bitcoin-bolt11
Short Description A library for decoding lightning network payment requests as defined in BOLT #11
License MIT
Homepage https://github.com/Jorijn/bitcoin-bolt11/
Informations about the package bitcoin-bolt11
A PHP library for BOLT #11: Invoice Protocol for Lightning Payments
This library aims to be a tool to decode BOLT #11 Payment Requests into usable PHP objects. Currently, only decoding is supported.
BOLT #11 is a simple, extendable, QR-code-ready protocol for requesting payments over Lightning.
Installation
Usage
More examples are available in the examples directory.
Warning
The ->getSatoshis()
method will only return a valid number if the invoice is for a whole number of satoshis. If it is in a fractional number of satoshis, and the method returns NULL, the ->getMilliSatoshis()
method must be used. 1000 millisatoshis is 1 satoshi.
Thanks
This library is based on other BOLT #11 libraries from other programming languages. Special thanks to:
- https://github.com/lightningnetwork/lnd/blob/master/zpay32/decode.go
- https://github.com/bitcoinjs/bolt11
- https://github.com/nievk/bolt11
CLI tool
There is a CLI tool based on this library. It allows for easy decoding and converting of payment requests into JSON, XML, YAML & CSV. Download and usage here: https://github.com/Jorijn/bitcoin-bolt11-cli
All versions of bitcoin-bolt11 with dependencies
ext-bcmath Version *
ext-gmp Version *
bitwasp/bech32 Version ^0.0.1
protonlabs/bitcoin Version ^1.0