PHPackages                             s-patompong/nano-converter-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. s-patompong/nano-converter-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

s-patompong/nano-converter-php
==============================

Convert between Nano currency units.

1.0.0(5y ago)0101MITPHPPHP ^8.0

Since Apr 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/s-patompong/nano-converter-php)[ Packagist](https://packagist.org/packages/s-patompong/nano-converter-php)[ Docs](https://github.com/s-patompong/nano-converter-php) Fund[ GitHub Sponsors](https://github.com/s-patompong)[ RSS](/packages/s-patompong-nano-converter-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Nano converter
==============

[](#nano-converter)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f6e1f810b5a08e623d0030cff4e0b6046bb42f3e33c89803fac5dedb9e42a60b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f732d7061746f6d706f6e672f6e616e6f2d636f6e7665727465722d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/s-patompong/nano-converter-php)[![GitHub Tests Action Status](https://camo.githubusercontent.com/715aaca301f79c16ebba760cee004c1b420cec40eb3356e9668ed0492f7dd285/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f732d7061746f6d706f6e672f6e616e6f2d636f6e7665727465722d7068702f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/s-patompong/nano-converter-php/actions?query=workflow%3ATests+branch%3Amaster)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/cdf64dada44992693aa070126f9cf009e747463ddc610945c0e95cd6a4bd03e1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f732d7061746f6d706f6e672f6e616e6f2d636f6e7665727465722d7068702f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/s-patompong/nano-converter-php/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/016eaa41da9b93f044798db25ede4b4d287e9ec7872dab859f556ba29fdcf9d6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f732d7061746f6d706f6e672f6e616e6f2d636f6e7665727465722d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/s-patompong/nano-converter-php)

Convert between Nano currency unit.

Support me
----------

[](#support-me)

You can support me by send NANO to `nano_3h9jnfh5j7j7bpyexb8uhze9fb35sy6gu6a8mhpzpj4ob1qnejfzkropmbw7`

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require s-patompong/nano-converter-php
```

Usage
-----

[](#usage)

Convert NANO to Raw.

```
$nano = new \SPatompong\NanoConverter\NANO("45.225513");
echo $nano->toRaw();

// Output: "45225513000000000000000000000000"
```

Convert Raw to NANO.

```
$raw = new \SPatompong\NanoConverter\Raw("7126405971523");
echo $raw->toNANO();

// Output: "0.000000000000000007126405971523"
```

It's important to note that the returned response is the object of BigDecimal class.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please email me at `p.pangpond@gmail.com` if you found vulnerabilities.

Credits
-------

[](#credits)

- [Patompong Savaengsuk](https://github.com/s-patompong)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1856d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d5e6fa560d4384df78f7d39c75e113c66f37e168a29a7dbdff32bc36ec55ed0d?d=identicon)[pangpondpon](/maintainers/pangpondpon)

---

Top Contributors

[![s-patompong](https://avatars.githubusercontent.com/u/3887531?v=4)](https://github.com/s-patompong "s-patompong (7 commits)")

---

Tags

s-patompongnano\_converter\_php

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/s-patompong-nano-converter-php/health.svg)

```
[![Health](https://phpackages.com/badges/s-patompong-nano-converter-php/health.svg)](https://phpackages.com/packages/s-patompong-nano-converter-php)
```

###  Alternatives

[ramsey/uuid

A PHP library for generating and working with universally unique identifiers (UUIDs).

12.6k700.2M3.3k](/packages/ramsey-uuid)[brick/money

Money and currency library

1.9k37.9M102](/packages/brick-money)[pascaldevink/shortuuid

PHP 7.4+ library that generates concise, unambiguous, URL-safe UUIDs

5951.8M15](/packages/pascaldevink-shortuuid)[flow-php/etl

PHP ETL - Extract Transform Load - Abstraction

374468.4k51](/packages/flow-php-etl)[blair2004/nexopos

The Free Modern Point Of Sale System build with Laravel, TailwindCSS and Vue.js.

1.2k2.3k](/packages/blair2004-nexopos)[spomky-labs/cbor-php

CBOR Encoder/Decoder for PHP

576.4M30](/packages/spomky-labs-cbor-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
