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

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

adamhut/unit-conversion
=======================

Perform unit conversion in PHP

1.1.1(5y ago)03[2 issues](https://github.com/adamhut/unit-conversion/issues)MITShellPHP ^7.3

Since Jul 5Pushed 5y ago1 watchersCompare

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

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

Perform unit conversion in PHP
==============================

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/5ecfa3c5c33c495b53dbcbcee91c162c01a288f908966e5151c352ea859fc76b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6164616d6875742f756e69742d636f6e76657273696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/adamhut/unit-conversion)[![GitHub Tests Action Status](https://camo.githubusercontent.com/fe68193e7cb1698d99c695b77145544f7a0b0d293214a02b49a07e9793bf6b76/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6164616d6875742f756e69742d636f6e76657273696f6e2f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/adamhut/unit-conversion?query=workflow%3Arun-tests+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/90acce933734cc505d917e9f416ae29350e1d2c52c49152306a519b9b487d136/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6164616d6875742f756e69742d636f6e76657273696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/unit-conversion)

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

[](#installation)

You can install the package via composer:

```
composer require adamhut/unit-conversion
```

Usage
-----

[](#usage)

```
$skeleton = new Adamhut\UnitConversion();
echo $skeleton->echoPhrase('Hello, Adamhut!');
```

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)

- [Adam Huang](https://github.com/AdamHuang)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

3

Last Release

2141d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

unit-conversionadamhut

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[rexxars/morse

Generate morse code (text and/or wav-audio)

113.2k](/packages/rexxars-morse)

PHPackages © 2026

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