mikerow / nanophp
PHP libraries and tools for Nano currency
Fund package maintenance!
Nano
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:01:25 UTC
README
PHP libraries and tools for Nano currency
Examples at NanoPHP/test
Install
composer require mikerow/nanophp
Features
-
class for building Nano blocks
-
class for interfacing to Nano node CLI
-
class for interfacing to Nano node IPC
-
class for interfacing to Nano node RPC
-
additional functions for NanoRPC
-
class for node-independent Nano functions
-
class for interfacing to Nano node WebSocket
FAQ
How to perform calculations with Nano denominations or raws?
PHP faces troubles when dealing with Nano 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 NanoBlock
- Add FlatBuffers support to NanoWS
- Increase FlatBuffers performances
- Enable listening on IPC
Credits
Thanks a lot for the work and effort of