Skip to content
PHP libraries and tools for Nano
Branch: master
Clone or download
Latest commit af05c7b Apr 20, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib Minor update Apr 20, 2019
ncm
README.md First upload Apr 19, 2019

README.md

php4nano

PHP libraries and tools for Nano

Read usage and examples in files header

Repository contents

lib

library for Nano

ncm

node CLI manager

A clarification on the huge integers

Since Nano uses huge integers to represent even a tiny amount (1 nano is 10^24 raw), while PHP supports much lower integers, I suggest you to manage every amount on your database/scripts using NANO (10^30) as reference denomination, which involves storing and managing amounts as float

If you need to perform arithmetic operations directly with the raw amounts, I suggest the GMP library

You can find denomination/raw conversion functions and other usefull stuffs in lib/NanoTools.php

To do

  • Add IPC call classes
  • Add nano_lib functions as standalone

Credits

Donations

nano_1undcod8mwabf3743uaij91w841wjk1wg7e3hu38hgshgqztjcceak3m9skm
You can’t perform that action at this time.