PHPackages                             pschultz/php-bytes - 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. pschultz/php-bytes

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

pschultz/php-bytes
==================

Converts PHP's short hand byte strings into bytes: bytes('1K') == 1024

1.0.1(9y ago)02251MITPHP

Since Apr 10Pushed 9y ago1 watchersCompare

[ Source](https://github.com/pschultz/php-bytes)[ Packagist](https://packagist.org/packages/pschultz/php-bytes)[ RSS](/packages/pschultz-php-bytes/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (3)Used By (1)

```
Provides the function \bytes(string) : int, which converts shorthand memory
notations (such as in ini settings) into number of bytes:

    bytes('1K') == 1024

The second function, \memory_limit_bytes(void), returns either the memory
limit in bytes, or INF if there is no memory limit.
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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

2

Last Release

3321d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bfb85e6ae68279e8c0ed0ba592d0d90c69501a714a967b2e9ee308c385266f9c?d=identicon)[pschultz](/maintainers/pschultz)

---

Top Contributors

[![pschultz](https://avatars.githubusercontent.com/u/607733?v=4)](https://github.com/pschultz "pschultz (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pschultz-php-bytes/health.svg)

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

PHPackages © 2026

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