PHPackages                             flavioheleno/scale - 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. flavioheleno/scale

ActiveLibrary

flavioheleno/scale
==================

Typical scale conversion as Interfaces constants for PHP

0.2.2(3y ago)0216↓100%MITPHPPHP ^8.1

Since Mar 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/flavioheleno/scale)[ Packagist](https://packagist.org/packages/flavioheleno/scale)[ RSS](/packages/flavioheleno-scale/feed)WikiDiscussions main Synced today

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Scale
=====

[](#scale)

Scale is a suite of interfaces that can be used to replace hard-coded constants.

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

[](#installation)

To use Scale, simple run:

```
composer require flavioheleno/scale
```

Usage
-----

[](#usage)

This library usage is straightforward.

```
// before
usleep(30000);

// after
usleep(30 * Milliseconds::IN_MICROSECONDS)
```

```
// before
$item->expiresAfter(86400);

// after
$item->expiresAfter(Days::IN_SECONDS);
```

License
-------

[](#license)

This library is licensed under the [MIT License](LICENSE).

###  Health Score

24

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

1111d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/42b9c9cbc06973a61587667fc811b853f4d71843f35ba2535f3900083e69ab3f?d=identicon)[flavioheleno](/maintainers/flavioheleno)

---

Top Contributors

[![flavioheleno](https://avatars.githubusercontent.com/u/471860?v=4)](https://github.com/flavioheleno "flavioheleno (8 commits)")

---

Tags

conversiondigital-storagescalestime

### Embed Badge

![Health badge](/badges/flavioheleno-scale/health.svg)

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

PHPackages © 2026

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