PHPackages                             akondas/php-runtime - 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. akondas/php-runtime

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

akondas/php-runtime
===================

PHP Runtime class provides methods to get total and free memory

2.0.0(1y ago)63.6k↓50%1MITPHPPHP ^8.3CI passing

Since Dec 23Pushed 9mo ago1 watchersCompare

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

READMEChangelog (4)Dependencies (4)Versions (5)Used By (1)

PHP Runtime
===========

[](#php-runtime)

[![Minimum PHP Version](https://camo.githubusercontent.com/905c670b6e3bc20026bddbc8923df4d38111e526b88f1252ac4ceb6643299d96/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e302d3838393242462e737667)](https://php.net/)[![build](https://github.com/akondas/php-runtime/actions/workflows/build.yml/badge.svg)](https://github.com/akondas/php-runtime/actions/workflows/build.yml)[![Latest Stable Version](https://camo.githubusercontent.com/cc29c444e3aa75462bf633a0d20e5a7bfca8a188295318e2a17ce578f3db2942/68747470733a2f2f706f7365722e707567782e6f72672f616b6f6e6461732f7068702d72756e74696d652f762f737461626c653f666f726d61743d666c6174)](https://packagist.org/packages/akondas/php-runtime)[![GitHub](https://camo.githubusercontent.com/b102a97399d367cd8fd9efa429e088c09c61c94403e0a921f29deb2a2e19a023/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f616b6f6e6461732f7068702d72756e74696d65)](https://camo.githubusercontent.com/b102a97399d367cd8fd9efa429e088c09c61c94403e0a921f29deb2a2e19a023/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f616b6f6e6461732f7068702d72756e74696d65)

PHP Runtime class provides methods to get total and free memory and number of available processors.

Usage
-----

[](#usage)

```
composer require akondas/php-runtime
```

```
use Akondas\Runtime;

$runtime = new Runtime();

$runtime->totalMemory();
$runtime->freeMemory();
$runtime->availableProcessors();
```

License
-------

[](#license)

PHPRuntime is released under the MIT Licence. See the bundled LICENSE file for details.

Author
------

[](#author)

[Arkadiusz Kondas](https://twitter.com/ArkadiuszKondas)

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance49

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity71

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 ~495 days

Total

4

Last Release

486d ago

Major Versions

0.1.0 → 1.0.02023-09-22

1.1.0 → 2.0.02025-01-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d00e1e73a4ff379162b943421469055929a95e7a6ce4c3808976dcc1fa28f4f?d=identicon)[akondas](/maintainers/akondas)

---

Top Contributors

[![akondas](https://avatars.githubusercontent.com/u/8239917?v=4)](https://github.com/akondas "akondas (16 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/akondas-php-runtime/health.svg)

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

###  Alternatives

[jaeger/querylist-phantomjs

QueryList Plugin: Use PhantomJS to crawl Javascript dynamically rendered pages.(headless WebKit ) 使用PhantomJS采集JavaScript动态渲染的页面

6124.3k2](/packages/jaeger-querylist-phantomjs)

PHPackages © 2026

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