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

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

mehdiaghighi/unit-conversions
=============================

Converts Units to one another

1.0.0(4y ago)04MITPHPPHP ^7.4|^8.0

Since Jul 1Pushed 4y ago1 watchersCompare

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

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

Converts Units to one another
=============================

[](#converts-units-to-one-another)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f3864c7e53bc0dee1b4321bb730e3c6041c46b1f4069e8eb7e24b9bf355fe967/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d65686469616768696768692f756e69742d636f6e76657273696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mehdiaghighi/unit-conversions)[![GitHub Tests Action Status](https://camo.githubusercontent.com/990b614b21f1a95594b1bdd702eb3ba841d07c650a043efb5cd9129d8365b876/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6d65686469616768696768692f756e69742d636f6e76657273696f6e732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/mehdiaghighi/unit-conversions/actions?query=workflow%3ATests+branch%3Amaster)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/e1829b05951116de770e606fa632edd49d66f62617ff5dfa3506f4f839fede44/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6d65686469616768696768692f756e69742d636f6e76657273696f6e732f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/mehdiaghighi/unit-conversions/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/1b3046fdf07e4107bdc6a20a926e885705170a8e555a10784cc0c70a5bd9120c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d65686469616768696768692f756e69742d636f6e76657273696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mehdiaghighi/unit-conversions)

---

This package can be used as to scaffold a Laravel package. Follow these steps to get started:

1. Press the "Use template" button at the top of this repo to create a new repo with the contents of this unit-conversions
2. Run "./configure.sh" to run a script that will replace all placeholders throughout all the files
3. Have fun creating your package.
4. If you need help creating a package, consider picking up our [Laravel Package Training](https://laravelpackage.training) video course.

---

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/ddebc88adda541c4b8f7d7c4d4e0a416f12749e02ee7ce7c367376d0f58ba441/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f756e69742d636f6e76657273696f6e732e6a70673f743d31)](https://spatie.be/github-ad-click/unit-conversions)

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 mehdiaghighi/unit-conversions
```

Usage
-----

[](#usage)

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

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)

- [Mehdi Aghighi](https://github.com/MehdiAghighi)
- [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

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

Unknown

Total

1

Last Release

1773d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/646a302bc5dd30563d69af590527f2574b05ed680713090436f321759c25ce5a?d=identicon)[mehdiaghighi](/maintainers/mehdiaghighi)

---

Top Contributors

[![MehdiAghighi](https://avatars.githubusercontent.com/u/34032643?v=4)](https://github.com/MehdiAghighi "MehdiAghighi (10 commits)")

---

Tags

unit-conversionsMehdi Aghighi

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[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)
