mikerow / bananophp
This package is abandoned and no longer maintained.
No replacement package was suggested.
PHP libraries and tools for Banano currency
Fund package maintenance!
v2.1.3
2020-10-13 11:50 UTC
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
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
floatisn't precise at certain decimal depths - Data type
integersize 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