PHPackages                             mglaman/units - 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. mglaman/units

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

mglaman/units
=============

Measurement unit library.

161PHP

Since Jun 1Pushed 10y ago1 watchersCompare

[ Source](https://github.com/mglaman/units)[ Packagist](https://packagist.org/packages/mglaman/units)[ RSS](/packages/mglaman-units/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

units [![Build Status](https://camo.githubusercontent.com/b296bd915ef1016adf3be57d52d51ddd78c9a8e80842ebfe5043ece78ea079bd/68747470733a2f2f7472617669732d63692e6f72672f6d676c616d616e2f756e6974732e737667)](https://travis-ci.org/mglaman/units) [![Coverage Status](https://camo.githubusercontent.com/d52c91d023950b528768e107081f982a62bb26ff6f632e387183614b44453a92/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6d676c616d616e2f756e6974732f62616467652e737667)](https://coveralls.io/r/mglaman/units)
=====================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#units--)

A PHP 5.4+ measurement unit library.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/98c03d4d2a6aa9b5ecdfc565e8f90f53f0a8f6c2757048a148b34b166d78266c?d=identicon)[mglaman](/maintainers/mglaman)

---

Top Contributors

[![mglaman](https://avatars.githubusercontent.com/u/3698644?v=4)](https://github.com/mglaman "mglaman (3 commits)")

### Embed Badge

![Health badge](/badges/mglaman-units/health.svg)

```
[![Health](https://phpackages.com/badges/mglaman-units/health.svg)](https://phpackages.com/packages/mglaman-units)
```

###  Alternatives

[dueros/bot-sdk

度秘bot开发的PHP SDK

7514.4k1](/packages/dueros-bot-sdk)[devitek/yaml-configuration

Add YAML file support to Laravel Configuration

1614.1k](/packages/devitek-yaml-configuration)[gabrielanhaia/php-circuit-breaker

Circuit breaker pattern for PHP with multiple storage adapters, event system, and manual override.

151.2k1](/packages/gabrielanhaia-php-circuit-breaker)

PHPackages © 2026

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