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

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

hiqdev/php-units
================

PHP Units of Measure Library

1.0.0(7y ago)422.6k↓64.3%4[1 PRs](https://github.com/hiqdev/php-units/pulls)BSD-3-ClausePHPCI failing

Since Mar 31Pushed 1y ago3 watchersCompare

[ Source](https://github.com/hiqdev/php-units)[ Packagist](https://packagist.org/packages/hiqdev/php-units)[ Docs](https://github.com/hiqdev/php-units)[ RSS](/packages/hiqdev-php-units/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

PHP Units
=========

[](#php-units)

**PHP Units of Measure Library**

[![Latest Stable Version](https://camo.githubusercontent.com/6f562084605ea48fe9d91e25afaca2734be3b6cc3b713f9e13f61c0183de2014/68747470733a2f2f706f7365722e707567782e6f72672f6869716465762f7068702d756e6974732f762f737461626c65)](https://packagist.org/packages/hiqdev/php-units)[![Total Downloads](https://camo.githubusercontent.com/0566c2f41a7488d4d6441e70e8b48f0a3266ce46c66604274d113a4b5f209b61/68747470733a2f2f706f7365722e707567782e6f72672f6869716465762f7068702d756e6974732f646f776e6c6f616473)](https://packagist.org/packages/hiqdev/php-units)[![Build Status](https://camo.githubusercontent.com/332d9d61e8f7cf2e6ef1c3c2bed8a3488a442bfd35098f6bf061c3c1cdc60717/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6869716465762f7068702d756e6974732e737667)](https://travis-ci.org/hiqdev/php-units)[![Scrutinizer Code Coverage](https://camo.githubusercontent.com/5959700956c99e00471deb6779dc09038fce5c16f8e4666b7219479d75e77137/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6869716465762f7068702d756e6974732e737667)](https://scrutinizer-ci.com/g/hiqdev/php-units/)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/bb5141dc460da816ecbd98fa5a290fc0c2f8cfeb189d0954771ea688cb45dbe7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6869716465762f7068702d756e6974732e737667)](https://scrutinizer-ci.com/g/hiqdev/php-units/)

Units of measure library providing:

- immutable objects
    - units of measure
    - quantity with unit
- conversion

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

[](#installation)

The preferred way to install this library is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require "hiqdev/php-units"
```

or add

```
"hiqdev/php-units": "*"
```

to the require section of your composer.json.

License
-------

[](#license)

This project is released under the terms of the BSD-3-Clause [license](LICENSE). Read more [here](http://choosealicense.com/licenses/bsd-3-clause).

Copyright © 2017-2019, HiQDev ()

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 85.5% 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 ~657 days

Total

2

Last Release

2723d ago

Major Versions

0.1.0 → 1.0.02019-01-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/790fd24da129907d373559f60c6994f664f06e3f518502c03580cc9f3594615e?d=identicon)[hiqdev](/maintainers/hiqdev)

---

Top Contributors

[![hiqsol](https://avatars.githubusercontent.com/u/11820365?v=4)](https://github.com/hiqsol "hiqsol (71 commits)")[![SilverFire](https://avatars.githubusercontent.com/u/4499203?v=4)](https://github.com/SilverFire "SilverFire (9 commits)")[![tafid](https://avatars.githubusercontent.com/u/3338188?v=4)](https://github.com/tafid "tafid (2 commits)")[![gadezist](https://avatars.githubusercontent.com/u/39760138?v=4)](https://github.com/gadezist "gadezist (1 commits)")

---

Tags

hacktoberfestphpconversionunitsmeasure

### Embed Badge

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

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

PHPackages © 2026

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