PHPackages                             hamza094/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. hamza094/unit\_conversion

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

hamza094/unit\_conversion
=========================

Perform unit conversion

1.1.0(5y ago)06MITPHPPHP ^8.0

Since Jun 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/hamza094/unit-conversion)[ Packagist](https://packagist.org/packages/hamza094/unit_conversion)[ Docs](https://github.com/hamza094/unit_conversion)[ GitHub Sponsors](https://github.com/hamza094)[ RSS](/packages/hamza094-unit-conversion/feed)WikiDiscussions main Synced 3w ago

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

Perform unit conversions in PHP
===============================

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

[![Stable Version](https://camo.githubusercontent.com/5c05fae8ea00c426c7a740a8003e2b3d3b8b69dae3a6154f0d8b66c9008c13a0/687474703a2f2f706f7365722e707567782e6f72672f68616d7a613039342f756e69745f636f6e76657273696f6e2f76)](https://packagist.org/packages/hamza094/unit_conversion)[![Total Downloads](https://camo.githubusercontent.com/918c2df4a5a68ce904f1003385198f1cfe43430f65b88e4becc6cf77801eb5a2/687474703a2f2f706f7365722e707567782e6f72672f68616d7a613039342f756e69745f636f6e76657273696f6e2f646f776e6c6f616473)](https://packagist.org/packages/hamza094/unit_conversion)[![Tests](https://github.com/hamza094/unit-conversion/actions/workflows/run-tests.yml/badge.svg)](https://github.com/hamza094/unit-conversion/actions/workflows/run-tests.yml)[![Check & fix styling](https://github.com/hamza094/unit-conversion/actions/workflows/php-cs-fixer.yml/badge.svg)](https://github.com/hamza094/unit-conversion/actions/workflows/php-cs-fixer.yml)

This Package performs unit conversions.Right now only kg to lbs and celcius to farenheit is supported

Here how to use it:

```
$use Hamza094\UnitConversions\Weight;
echo Weight::fromkilograms(100)->toLbs();
```

```
composer require hamza094/unit_conversion
```

Usage
-----

[](#usage)

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

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)

- [Hamza Ikram](https://github.com/hamza094)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

1829d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

unit-conversionhamza094

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

PHPackages © 2026

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