mikerow / bananophp
PHP libraries and tools for Banano currency
Fund package maintenance!
Banano
Requires
- php-64bit: ^7.2.0
- ext-curl: *
- ext-gmp: *
- ext-mbstring: *
- ext-openssl: *
- ext-sockets: *
- bitwasp/bitcoin-lib: 1.0.*
- google/flatbuffers: *
- mikerow/salt: *
- textalk/websocket: *
Suggests
- ext-blake2: Install blake2 extension in order to speed up some functions: https://github.com/strawbrary/php-blake2
- dev-master
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0
- v1.9.21
- v1.9.20
- v1.9.15
- v1.9.14
- v1.9.13
- v1.9.12
- v1.9.11
- v1.9.10
- v1.9.9
- v1.9.8
- v1.9.7
- v1.9.6
- v1.9.5
- v1.9.4
- v1.9.3
- v1.9.2
- v1.9.1
- v1.9
- v1.8.1
- v1.8
- v1.7.16
- v1.7.15
- v1.7.14
- v1.7.13
- v1.7.12
- v1.7.11
- v1.7.10
- v1.7.9
- v1.7.8
- v1.7.7
- v1.7.6
- v1.7.5
- v1.7.4
- v1.7.3
- v1.7.2
- v1.7.1
- v1.7
This package is auto-updated.
Last update: 2020-11-13 12:13:45 UTC
README
PHP libraries and tools for Banano currency
Examples at BananoPHP/test
Install
composer require mikerow/bananophp
Features
-
class for building Banano blocks
-
class for interfacing to Banano node CLI
-
class for interfacing to Banano node IPC
-
class for interfacing to Banano node RPC
-
additional functions for BananoRPC
-
class for node-independent Banano functions
-
class for interfacing to Banano node WebSocket
FAQ
How to perform calculations with Banano denominations or raws?
PHP faces troubles when dealing with Banano amounts ...
- Data type
float
isn't precise at certain decimal depths - Data type
integer
size is limited to 64 bit
A good solution is to perform calculations in raws using GNU Multiple Precision
Why not use libsodium instead of Salt or php-blake2?
Some limitations prevent the use of libsodium ...
- Functions
sodium_crypto_sign_*
use SHA-2 instead Blake2 - Functions
sodium_crypto_generichash_*
don't allow output smaller than 16 bytes
To do
- Add Epoch v2 support to BananoBlock
- Add FlatBuffers support to BananoWS
- Increase FlatBuffers performances
- Enable listening on IPC
Credits
Thanks a lot for the work and effort of