PHPackages                             mohamedallam1991/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. mohamedallam1991/unit\_conversions

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

mohamedallam1991/unit\_conversions
==================================

This is my package UnitConversions

1.2.0(5y ago)03MITShellPHP ^7.4|^8.0

Since Apr 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mohamedallam1991/unit-conversions)[ Packagist](https://packagist.org/packages/mohamedallam1991/unit_conversions)[ Docs](https://github.com/mohamedallam1991/unit_conversions)[ Fund](https://github.com/mohamedallam1991/)[ GitHub Sponsors](https://github.com/mohamedallam1991)[ RSS](/packages/mohamedallam1991-unit-conversions/feed)WikiDiscussions master Synced today

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

This is my package UnitConversions
==================================

[](#this-is-my-package-unitconversions)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3cde90c66dcf21fe44f28b5547ab3f0a5955a96fb9a2cc3abe82e5109ccdd518/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f68616d6564616c6c616d313939312f756e69745f636f6e76657273696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mohamedallam1991/unit_conversions)[![GitHub Tests Action Status](https://camo.githubusercontent.com/372d9f88c1c2dde2884e05c025143946619bdfcb8a827face52c2bb20eacd145/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6d6f68616d6564616c6c616d313939312f756e69745f636f6e76657273696f6e732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/mohamedallam1991/unit_conversions/actions?query=workflow%3ATests+branch%3Amaster)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/6000bed12106d6e045cc45756c71f6ece2282505dde35e6d02002da241e04711/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6d6f68616d6564616c6c616d313939312f756e69745f636f6e76657273696f6e732f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/mohamedallam1991/unit_conversions/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/b2806d4d5a833db0281e9b67e375670a44fb6e771bdfb993dbb66bc8139c769c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f68616d6564616c6c616d313939312f756e69745f636f6e76657273696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mohamedallam1991/unit_conversions)

[](delete) 1) manually replace `Mohamed Allam, mohamedallam1991, auhor@domain.com, mohamedallam1991, mohamedallam1991, Vendor Name, unit-conversions, unit_conversions, unit_conversions, UnitConversions, This is my package UnitConversions` with their correct values [](delete) in `CHANGELOG.md LICENSE.md README.md composer.json UnitConversionsClass.php ExampleTest.php FUNDING.yml config.yml SECURITY.md`[](delete) and delete `configure-unit_conversions.sh`

[](delete) 2) You can also run `./configure-unit_conversions.sh` to do this automatically.

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

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/cee57a1d5f3086dfbcea36c3c4195d6a897aa8499fd043c81e294dcf119f7f10/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f7061636b6167652d756e69745f636f6e76657273696f6e732d7068702e6a70673f743d31)](https://spatie.be/github-ad-click/package-unit_conversions-php)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require mohamedallam1991/unit_conversions
```

Usage
-----

[](#usage)

```
$unit_conversions = new Mohamedallam1991\UnitConversions();
echo $unit_conversions->echoPhrase('Hello, Mohamedallam1991!');
```

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)

- [Mohamed Allam](https://github.com/mohamedallam1991)
- [All Contributors](../../contributors)

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

Community7

Small or concentrated contributor base

Maturity57

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

Unknown

Total

1

Last Release

1852d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12979055?v=4)[mohamedallam](/maintainers/mohamedallam)[@MohamedAllam](https://github.com/MohamedAllam)

---

Top Contributors

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

---

Tags

unit-conversionsmohamedallam1991

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[sroze/companienv

Companion for .env files

245418.8k1](/packages/sroze-companienv)[spatie/unit-conversions

Perform unit conversions in PHP

363.5k](/packages/spatie-unit-conversions)

PHPackages © 2026

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