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

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

centire/unit-conversions
========================

Unit conversion in PHP

1.1.0(5y ago)03MITPHPPHP ^7.4

Since Jul 20Pushed 5y agoCompare

[ Source](https://github.com/niveshsaharan/unit-conversions)[ Packagist](https://packagist.org/packages/centire/unit-conversions)[ Docs](https://github.com/spatie/unit-conversions)[ Fund](https://spatie.be/open-source/support-us)[ GitHub Sponsors](https://github.com/spatie)[ RSS](/packages/centire-unit-conversions/feed)WikiDiscussions master Synced 6d ago

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

Unit conversion in PHP
======================

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/3e4b806704b939d39a995f8cdcfa5dcbfc87858048fdeaf44882f02c95f739a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63656e746972652f756e69742d636f6e76657273696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/centire/unit-conversions)[![GitHub Tests Action Status](https://camo.githubusercontent.com/3daf32327d67a518a15dd23a8268653a39abb1742020c476da81c483c66cbf45/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6e69766573687361686172616e2f756e69742d636f6e76657273696f6e732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/niveshsaharan/unit-conversions/actions?query=workflow%3Arun-tests+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/6ec10b6e8e2693f0ef8243240c283ba88892f265e43f1bbdb898b8ec8227be91/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63656e746972652f756e69742d636f6e76657273696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/centire/unit-conversions)

A wonderful package for unit conversions in PHP

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

[](#installation)

You can install the package via composer:

```
composer require niveshsaharan/unit-conversions
```

Usage
-----

[](#usage)

```
$lbs = Weight::fromKilograms(100)->toLbs();
```

Testing
-------

[](#testing)

```
composer test
```

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)

- [Nivesh Saharan](https://github.com/niveshsaharan)

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

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

2127d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

unit-conversionscentire

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[league/glide-laravel

Glide adapter for Laravel

1433.2M35](/packages/league-glide-laravel)[chriskonnertz/open-graph

Class that assists in building Open Graph meta tags

117428.6k3](/packages/chriskonnertz-open-graph)[jeremykenedy/slack-laravel

Laravel integration for the jeremykenedy/slack package, including facades and service providers.

54738.8k](/packages/jeremykenedy-slack-laravel)[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)
