Skip to content
This repository has been archived by the owner. It is now read-only.
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 

BananoPHP

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