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

ActiveLibrary

chrtri/unit-conversions
=======================

Package to perform unit conversion in PHP

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

Since Jun 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ChrTri/unit-conversions)[ Packagist](https://packagist.org/packages/chrtri/unit-conversions)[ Docs](https://github.com/spatie/unit-conversions)[ RSS](/packages/chrtri-unit-conversions/feed)WikiDiscussions master Synced 1mo ago

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

Package to perform unit conversion in PHP
=========================================

[](#package-to-perform-unit-conversion-in-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/05c616895a30c02cd8c673af47863ba9def02bdf2266e54f0f7cd216a8103b97/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7370617469652f756e69742d636f6e76657273696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/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)

This is where your description should go. Try and limit it to a paragraph or two. Consider adding a small example.

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

[](#installation)

You can install the package via composer:

```
composer require chrtri/unit-conversions
```

Usage
-----

[](#usage)

```
include('vendor/autoload.php');

echo \ChrTri\UnitConversions\Weight::fromKilograms(100)->toLbs() . PHP_EOL;
```

Testing
-------

[](#testing)

```
call vendor/bin/phpunit UnitTest tests/WeightTest.php
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [chrtri](https://github.com/chrtri)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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 ~1 days

Total

2

Last Release

2166d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

unit-conversionsChrTri

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/chrtri-unit-conversions/health.svg)](https://phpackages.com/packages/chrtri-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)
