PHPackages                             mohammad19khodaei/unit-conversion - 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. mohammad19khodaei/unit-conversion

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

mohammad19khodaei/unit-conversion
=================================

Perfom unit conversion in PHP

1.1.0(5y ago)03MITPHPPHP ^7.4CI failing

Since Nov 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mohammad19khodaei/unit-conversion)[ Packagist](https://packagist.org/packages/mohammad19khodaei/unit-conversion)[ Docs](https://github.com/mohammad19khodaei/unit-conversion)[ GitHub Sponsors](https://github.com/sponsors/spatie)[ Fund](https://spatie.be/open-source/support-us)[ RSS](/packages/mohammad19khodaei-unit-conversion/feed)WikiDiscussions master Synced yesterday

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

Perfom unit conversion in PHP
=============================

[](#perfom-unit-conversion-in-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c044af41f36f2e8044d6c1d3532d9fa96bdc1c87cc290de40ab8f099493aed7b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f68616d6d616431396b686f646165692f756e69742d636f6e76657273696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mohammad19khodaei/unit-conversion)[![Tests](https://github.com/mohammad19khodaei/unit-conversion/workflows/Tests/badge.svg)](https://github.com/mohammad19khodaei/unit-conversion/workflows/Tests/badge.svg)[![Total Downloads](https://camo.githubusercontent.com/3642c2c0315b253774ed56fb221174aab6b23e57986b17a45942131da6afa689/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f68616d6d616431396b686f646165692f756e69742d636f6e76657273696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mohammad19khodaei/unit-conversion)

This package can perform various unit conversions.Right now only kg to lbs is supported.

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

[](#installation)

You can install the package via composer:

```
composer require mohammad19khodaei/unit-conversion
```

Usage
-----

[](#usage)

```
use Mohammad19khodaei\UnitConversion\Weight;

Weight::fromKilogerams(100)->toLbs(); // return 440.92
```

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.

Credits
-------

[](#credits)

- [Mohammad Khodaei](https://github.com/mohammad19khodaei)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Every ~0 days

Total

2

Last Release

2110d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/30317757?v=4)[Mohammad Khodaei](/maintainers/mohammad19khodaei)[@mohammad19khodaei](https://github.com/mohammad19khodaei)

---

Top Contributors

[![mohammad19khodaei](https://avatars.githubusercontent.com/u/30317757?v=4)](https://github.com/mohammad19khodaei "mohammad19khodaei (13 commits)")

---

Tags

unit-conversionmohammad19khodaei

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mohammad19khodaei-unit-conversion/health.svg)

```
[![Health](https://phpackages.com/badges/mohammad19khodaei-unit-conversion/health.svg)](https://phpackages.com/packages/mohammad19khodaei-unit-conversion)
```

###  Alternatives

[soup/paginator

Paginator is a simple class that allows you to create pagination. It doesn't require any database connection. It is compatible with Twitter's Bootstrap Framework, by using the CSS class pagination that is also attached.

351.6k](/packages/soup-paginator)

PHPackages © 2026

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