PHPackages                             mbezhanov/ethereum-converter - 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. mbezhanov/ethereum-converter

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

mbezhanov/ethereum-converter
============================

A simple library for performing conversion between various Ethereum units

v2.0.0(5y ago)1837.1k↓75.3%8[2 PRs](https://github.com/mbezhanov/ethereum-converter/pulls)MITPHPPHP ^7.3|^8.0CI failing

Since Nov 30Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/mbezhanov/ethereum-converter)[ Packagist](https://packagist.org/packages/mbezhanov/ethereum-converter)[ RSS](/packages/mbezhanov-ethereum-converter/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

Ethereum Unit Converter
=======================

[](#ethereum-unit-converter)

A simple library for performing easy conversion between various Ethereum units.

The conversion logic has been modelled after [web3.js](https://github.com/ethereum/web3.js)

This library requires the [bcmath](http://php.net/manual/en/book.bc.php) PHP extension.

**Installation:**

```
composer require mbezhanov/ethereum-converter
```

**Usage:**

```
$converter = new Bezhanov\Ethereum\Converter();

// convert from Wei to another unit:
$value = $converter->fromWei('21000000000000', 'finney');
echo $value; // "0.021"

// convert from another unit to Wei:
$value = $converter->toWei('1', 'ether');
echo $value; // "1000000000000000000"
```

**Supported units:**

- `kwei` / `ada`
- `mwei` / `babbage`
- `gwei` / `shannon`
- `szabo`
- `finney`
- `ether`
- `kether` / `grand` / `einstein`
- `mether`
- `gether`
- `tether`

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance49

Moderate activity, may be stable

Popularity38

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity71

Established project with proven stability

 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

Every ~599 days

Total

3

Last Release

1941d ago

Major Versions

v1.0.1 → v2.0.02021-03-12

PHP version history (2 changes)v1.0.0PHP ^7.0

v2.0.0PHP ^7.3|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/785542?v=4)[Marin Bezhanov](/maintainers/mbezhanov)[@mbezhanov](https://github.com/mbezhanov)

---

Top Contributors

[![mbezhanov](https://avatars.githubusercontent.com/u/785542?v=4)](https://github.com/mbezhanov "mbezhanov (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mbezhanov-ethereum-converter/health.svg)

```
[![Health](https://phpackages.com/badges/mbezhanov-ethereum-converter/health.svg)](https://phpackages.com/packages/mbezhanov-ethereum-converter)
```

###  Alternatives

[guava/filament-icon-select-column

Adds a icon select (via dropdown) column to your filament tables.

4610.0k](/packages/guava-filament-icon-select-column)[jandc/css-from-html-extractor

Php library which determines which css is used from html snippets.

1030.2k1](/packages/jandc-css-from-html-extractor)[grifart/scaffolder

Class scaffolder. Write definition, generate simple value holders. Useful for trivial composite types used in event sourced applications - for commands, events and query definitions classes. This mostly supplements public readonly $properties

1018.6k3](/packages/grifart-scaffolder)[cleaniquecoders/shrinkr

Shrinkr is a Laravel package for shortening URLs, with custom slugs, analytics, branded domains, and seamless API integration.

157.6k](/packages/cleaniquecoders-shrinkr)[werd/ivona-speechcloud-sdk-php

IVONA SpeechCloud SDK for PHP

102.1k](/packages/werd-ivona-speechcloud-sdk-php)

PHPackages © 2026

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