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!
Banano

v2.1.3 2020-10-13 11:50 UTC

README

PHP libraries and tools for Banano currency

Examples at BananoPHP/test

Install

composer require mikerow/bananophp

Features

  • BananoBlock

    class for building Banano blocks

  • BananoCLI

    class for interfacing to Banano node CLI

  • BananoIPC

    class for interfacing to Banano node IPC

  • BananoRPC

    class for interfacing to Banano node RPC

  • BananoRPCExt

    additional functions for BananoRPC

  • BananoTool

    class for node-independent Banano functions

  • BananoWS

    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