PHPackages                             mesba/unitconversion - 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. mesba/unitconversion

ActiveLibrary

mesba/unitconversion
====================

perform unit conversion in php

1.0.1(2y ago)05[2 PRs](https://github.com/mesba-islam/unit-conversion/pulls)MITPHPPHP ^8.1

Since Mar 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mesba-islam/unit-conversion)[ Packagist](https://packagist.org/packages/mesba/unitconversion)[ Docs](https://github.com/:vendor_slug/:package_slug)[ RSS](/packages/mesba-unitconversion/feed)WikiDiscussions main Synced 1mo ago

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

Unit Conversion
===============

[](#unit-conversion)

A simple php package for metric conversion. Kg to Pounds Celsius to Fahrenheit

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

[](#installation)

You can install the package via composer:

```
composer require mesba/unitconversion
```

Usage
-----

[](#usage)

```
include 'vendor/autoload.php';
echo Weight::fromKilograms(100)->tolbs();
echo Temperature::fromCelsius(33)->toFr();
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](https://github.com/mesba-islam/unit-conversion) for details.

Credits
-------

[](#credits)

- [Mesba](https://github.com/mesba-islam)

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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 ~0 days

Total

2

Last Release

793d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b6d8d70801fead4d2458a95a316dfce8b2d794efd11a871c37dff5de8acfe04?d=identicon)[mesba-islam](/maintainers/mesba-islam)

---

Top Contributors

[![mesba-islam](https://avatars.githubusercontent.com/u/82472635?v=4)](https://github.com/mesba-islam "mesba-islam (18 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

unit-conversionsmesba

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/mesba-unitconversion/health.svg)

```
[![Health](https://phpackages.com/badges/mesba-unitconversion/health.svg)](https://phpackages.com/packages/mesba-unitconversion)
```

###  Alternatives

[spatie/unit-conversions

Perform unit conversions in PHP

343.5k](/packages/spatie-unit-conversions)

PHPackages © 2026

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