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. [Utility &amp; Helpers](/categories/utility)
4. /
5. flavioheleno/scale

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

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

Typical scale conversion as Interfaces constants for PHP

0.2.2(3y ago)02181MITPHPPHP ^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 2w ago

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

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 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

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

1203d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/471860?v=4)[Flávio Heleno](/maintainers/flavioheleno)[@flavioheleno](https://github.com/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)
```

###  Alternatives

[gehrisandro/tailwind-merge-php

TailwindMerge for PHP merges multiple Tailwind CSS classes by automatically resolving conflicts between them

1391.7M12](/packages/gehrisandro-tailwind-merge-php)[symfony/polyfill-intl-messageformatter

Symfony polyfill for intl's MessageFormatter class and related functions

394.2M29](/packages/symfony-polyfill-intl-messageformatter)[prinsfrank/measurement-unit

A collection of measurement units for easy conversion

119.4k](/packages/prinsfrank-measurement-unit)[jalendport/craft-updatechecker

Automated update checker that notifies you of any pending updates

125.7k1](/packages/jalendport-craft-updatechecker)

PHPackages © 2026

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