PHPackages                             migo/unit-conversions - 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. migo/unit-conversions

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

migo/unit-conversions
=====================

unit conversions in php

1.1.0(5y ago)111MITPHPPHP ^7.4|^8.0CI failing

Since Dec 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/migo1/unit-conversions)[ Packagist](https://packagist.org/packages/migo/unit-conversions)[ Docs](https://github.com/migo1/unit-conversions)[ GitHub Sponsors](https://github.com/sponsors/spatie)[ Fund](https://spatie.be/open-source/support-us)[ RSS](/packages/migo-unit-conversions/feed)WikiDiscussions master Synced 1w ago

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

unit conversions in php
=======================

[](#unit-conversions-in-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/05c616895a30c02cd8c673af47863ba9def02bdf2266e54f0f7cd216a8103b97/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7370617469652f756e69742d636f6e76657273696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/migo/unit-conversions)[![GitHub Tests Action Status](https://camo.githubusercontent.com/e2f0b2539c952bcdf31597fa9d400e02c7bdfc622d164565e37505a8d1ae728f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7370617469652f756e69742d636f6e76657273696f6e732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/spatie/unit-conversions/actions?query=workflow%3Arun-tests+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/ced566e3e464b83808134fef50cbfba9022214f8ea272d11d1651c3543a26d68/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7370617469652f756e69742d636f6e76657273696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/unit-conversions)

A Package For Unit Conversions But Curently still on Kgs to Lbs

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

[](#installation)

You can install the package via composer:

```
composer require migo/unit-conversions
```

Usage
-----

[](#usage)

```
use Migo\UnitConversions\Weight;

Weight::fromKilograms(100)->toLbs() // returns 220.4623;
```

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 review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Robert Migot](https://github.com/migo1)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

1965d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0bbf4dfd9e0e42fce95abad48f759ca09cb2f1923742361d411890a46c4bc001?d=identicon)[miGo1](/maintainers/miGo1)

---

Top Contributors

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

---

Tags

unit-conversionsmigo

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/migo-unit-conversions/health.svg)

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

###  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)
