# BitOne/php-meminfo

PHP extension to get insight about memory usage

Repository: https://github.com/BitOne/php-meminfo
Canonical: https://ross.abutalabs.com/products/php-meminfo
Language: PHP
License: MIT
License Family: permissive
Last push: 2024-02-18T23:21:49+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4589, "days_push": 927, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1120, forks 85 (observed 2026-08-28T04:03:39.669114+00:00)

## What it is
A PHP extension that dumps the content of PHP process memory to JSON and provides CLI analyzers to inspect it. It helps developers understand memory usage and diagnose memory leaks, inspired by Java's jmap -histo tool.

## Use cases
- find memory leaks in a PHP application
- dump PHP process memory to a JSON file
- summarize object and string counts in memory
- identify objects holding the most child references
- debug growing memory usage in long-running PHP scripts
- analyze which classes consume the most memory

## When to choose
- you suspect a memory leak in a PHP 7.x or 8.0 application
- you need a heap dump of a running PHP process for offline analysis
- you want jmap-style memory histograms for PHP

## When to avoid
- you need profiling of CPU time or execution performance rather than memory
- you run PHP 8.1+ or newer versions not listed as supported
- you want a continuous production monitoring solution rather than on-demand debugging

## Facets
- artifact type: library
- maturity: maintenance
- function: developer-tools, monitoring
- domain: developer-tools, performance
- platform: php, cli
- tags: memory-profiling, memory-leaks, heap-dump, php-extension, memory-analysis, debugging, php, linux, macos

## Member repositories
- BitOne/php-meminfo (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:39.669114+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:41:03.500976+00:00, confidence not recorded.
  - readme: https://github.com/BitOne/php-meminfo (fetched 2026-08-28T04:03:39.669114+00:00, sha a6957f38bfcc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
