PHPackages                             anteris-dev/units-of-information-helper - 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. anteris-dev/units-of-information-helper

ActiveLibrary

anteris-dev/units-of-information-helper
=======================================

A Byte-Sized Package for your Units of Information Conversion

00PHP

Since Apr 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Anteris-Dev/units-of-information-helper)[ Packagist](https://packagist.org/packages/anteris-dev/units-of-information-helper)[ RSS](/packages/anteris-dev-units-of-information-helper/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

A Byte-Sized Package for your Units of Information Conversion
=============================================================

[](#a-byte-sized-package-for-your-units-of-information-conversion)

[![Tests](https://github.com/Anteris-Dev/units-of-information-helper/workflows/Test/badge.svg)](https://github.com/Anteris-Dev/units-of-information-helper/actions?query=workflow%3ATest)[![Check & fix styling](https://github.com/Anteris-Dev/units-of-information-helper/workflows/Check%20&%20fix%20styling/badge.svg)](https://github.com/Anteris-Dev/units-of-information-helper/actions?query=workflow%3A%22Check+%26+fix+styling%22)

Okay, we lied... it's 14.8 Megabytes, but it's sooo worth it.

To Install
==========

[](#to-install)

```
composer require anteris-dev/units-of-information-helper:dev-master
```

About
=====

[](#about)

This package helps convert units of information (Bits, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, etc.) to other units of information and readable strings.

Example: Gigabytes to Megabytes
-------------------------------

[](#example-gigabytes-to-megabytes)

```
use Anteris\Helper\UnitsOfInformation\Gigabyte;
use Anteris\Helper\UnitsOfInformation\Megabyte;

Gigabyte::toMegabyte(2); // 2048

// OR

Megabyte::fromGigabyte(2); // 2048
```

Example: Human Readable String
------------------------------

[](#example-human-readable-string)

```
use Anteris\Helper\UnitsOfInformation\Kilobyte;
use Anteris\Helper\UnitsOfInformation\Human;

// Outputs: 1.00 MB
echo Human::megabyte(
    Kilobyte::toMegabyte(1028)
);
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 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/3dca3c3ac71024f7878526a0fe0a384fbf198ed711fe7e7bb34177a1dbc849f6?d=identicon)[golthem](/maintainers/golthem)

---

Top Contributors

[![aidan-casey](https://avatars.githubusercontent.com/u/6686277?v=4)](https://github.com/aidan-casey "aidan-casey (2 commits)")

### Embed Badge

![Health badge](/badges/anteris-dev-units-of-information-helper/health.svg)

```
[![Health](https://phpackages.com/badges/anteris-dev-units-of-information-helper/health.svg)](https://phpackages.com/packages/anteris-dev-units-of-information-helper)
```

PHPackages © 2026

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