mikerow/nanophp

This package is abandoned and no longer maintained. No replacement package was suggested.

PHP libraries and tools for Nano currency

Fund package maintenance!
Nano

v1.0.2 2020-10-13 11:51 UTC

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

  • NanoBlock

    class for building Nano blocks

  • NanoCLI

    class for interfacing to Nano node CLI

  • NanoIPC

    class for interfacing to Nano node IPC

  • NanoRPC

    class for interfacing to Nano node RPC

  • NanoRPCExt

    additional functions for NanoRPC

  • NanoTool

    class for node-independent Nano functions

  • NanoWS

    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