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

ActiveLibrary

tonaflcastelan/unit-conversions
===============================

Perform unit conversions in PHP

1.1.2(5y ago)06MITPHPPHP ^7.4

Since Jul 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/tonaflcastelan/unit-conversions)[ Packagist](https://packagist.org/packages/tonaflcastelan/unit-conversions)[ Docs](https://github.com/tonaflcastelan/unit-conversions)[ RSS](/packages/tonaflcastelan-unit-conversions/feed)WikiDiscussions master Synced 2d ago

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

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

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/05c616895a30c02cd8c673af47863ba9def02bdf2266e54f0f7cd216a8103b97/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7370617469652f756e69742d636f6e76657273696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/unit-conversions)[![GitHub Tests Action Status](https://camo.githubusercontent.com/e2f0b2539c952bcdf31597fa9d400e02c7bdfc622d164565e37505a8d1ae728f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7370617469652f756e69742d636f6e76657273696f6e732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/spatie/unit-conversions/actions?query=workflow%3Arun-tests+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/ced566e3e464b83808134fef50cbfba9022214f8ea272d11d1651c3543a26d68/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7370617469652f756e69742d636f6e76657273696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/unit-conversions)

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)

Learn how to create a package like this one, by watching our premium video course:

[![Laravel Package training](https://camo.githubusercontent.com/4c7f3720a29525e627f6004ee367e55def510e45d18e6bc974725812fa5cf257/68747470733a2f2f7370617469652e62652f6769746875622f7061636b6167652d747261696e696e672e6a7067)](https://laravelpackage.training)

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

Usage
-----

[](#usage)

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

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)

- [Tonatiuh Flores Castelan](https://github.com/tonaflcastelan)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 37% 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

4

Last Release

2118d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/597021e2936923c579942ce2a18c8b9c9d2e860eabc8e7fe6bee749d392f0e8e?d=identicon)[tonaflcastelan](/maintainers/tonaflcastelan)

---

Top Contributors

[![tonaflcastelan](https://avatars.githubusercontent.com/u/20670825?v=4)](https://github.com/tonaflcastelan "tonaflcastelan (14 commits)")

---

Tags

unit-conversionstonaflcastelan

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/tonaflcastelan-unit-conversions/health.svg)](https://phpackages.com/packages/tonaflcastelan-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)
