PHPackages                             prinsfrank/measurement-unit - 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. prinsfrank/measurement-unit

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

prinsfrank/measurement-unit
===========================

A collection of measurement units for easy conversion

v1.5.0(1y ago)119.5k2[1 issues](https://github.com/PrinsFrank/measurement-unit/issues)[2 PRs](https://github.com/PrinsFrank/measurement-unit/pulls)MITPHPPHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0CI passing

Since Oct 18Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/PrinsFrank/measurement-unit)[ Packagist](https://packagist.org/packages/prinsfrank/measurement-unit)[ GitHub Sponsors](https://github.com/PrinsFrank)[ RSS](/packages/prinsfrank-measurement-unit/feed)WikiDiscussions main Synced today

READMEChangelog (7)Dependencies (7)Versions (10)Used By (0)

  ![Banner](docs/images/banner_light.png)Measurement-unit
================

[](#measurement-unit)

[![GitHub](https://camo.githubusercontent.com/36fbfdbe9875736ffb7b357c374ea1231cd1f753a6d3e071138a3b614d89d77d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7072696e736672616e6b2f6d6561737572656d656e742d756e6974)](https://camo.githubusercontent.com/36fbfdbe9875736ffb7b357c374ea1231cd1f753a6d3e071138a3b614d89d77d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7072696e736672616e6b2f6d6561737572656d656e742d756e6974)[![PHP Version Support](https://camo.githubusercontent.com/baadb39a1e83fcd55f4e6715d4464d17f8ec15c3b097c1cffbf0cf1a97692286/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7072696e736672616e6b2f6d6561737572656d656e742d756e6974)](https://camo.githubusercontent.com/baadb39a1e83fcd55f4e6715d4464d17f8ec15c3b097c1cffbf0cf1a97692286/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7072696e736672616e6b2f6d6561737572656d656e742d756e6974)[![codecov](https://camo.githubusercontent.com/e5263a8d391d69bd02d05cb7fb81ee8e327295d24e826649be093aea98acdf3a/68747470733a2f2f636f6465636f762e696f2f67682f5072696e734672616e6b2f6d6561737572656d656e742d756e69742f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d394f3356423536334d55)](https://codecov.io/gh/PrinsFrank/measurement-unit)

Setup
-----

[](#setup)

> **Note**Make sure you are running PHP 8.1 or higher to use this package

To use this package in your project, run the following command:

```
composer require prinsfrank/measurement-unit
```

Provided units
--------------

[](#provided-units)

TypeAvailable unitLengthCentimeter, Fathom, Foot, Furlong, HorseLength, Inch, Kilometer, Meter, Millimeter, NauticalMile, StatuteMile, SurveyMile, Thou, YardPressureBar, Hectopascal, Kilopascal, Millibar, MillimetreOfMercury, Pascal, PoundPerSquareInch, StandardAtmosphere, TorrSpeedKilometerPerHour, Knot, MeterPerSecond, MilesPerHourTemperatureCelsius, Fahrenheit, Kelvin, RankineTimeDay, Hour, Minute, SecondTorqueNewtonMeterVolumeCubicInch, CubicMeter, CubicYard, FluidDram, FluidOunce, Liter, Pint, Quart, TableSpoonWeightKilogram, MetricTon, PoundAll the units of a type can be converted to each other with corresponding methods.

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance52

Moderate activity, may be stable

Popularity31

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 94.7% 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 ~146 days

Recently: every ~133 days

Total

7

Last Release

477d ago

Major Versions

v0.1 → v1.0.02022-11-19

PHP version history (5 changes)v1.0.0PHP ^8.1

v1.1.0PHP ^8.1 || ^8.2

v1.3.0PHP ^8.1 || ^8.2 || ^8.3

v1.4.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0

v1.5.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/288919c24dc651727390578a2bfe6ef020f6f508c30db717b54c943a9e2ac0b3?d=identicon)[PrinsFrank](/maintainers/PrinsFrank)

---

Top Contributors

[![PrinsFrank](https://avatars.githubusercontent.com/u/25006490?v=4)](https://github.com/PrinsFrank "PrinsFrank (108 commits)")[![BorisAnthony](https://avatars.githubusercontent.com/u/964649?v=4)](https://github.com/BorisAnthony "BorisAnthony (4 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (1 commits)")

---

Tags

hacktoberfestphpspeedtimetorquevolumeweight

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/prinsfrank-measurement-unit/health.svg)

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

###  Alternatives

[vormkracht10/laravel-seo-scanner

The Laravel tool to boost the SEO score of your web pages.

26920.5k3](/packages/vormkracht10-laravel-seo-scanner)

PHPackages © 2026

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