Download the PHP package dev-hvmnd/memory-info without Composer

On this page you can find all versions of the php package dev-hvmnd/memory-info. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package memory-info

PHP Memory Info

PHP Memory Info is a small PHP library for reading the current memory status on Linux systems.

It reads /proc/meminfo, normalizes the kernel field names, and returns a typed MemoryInfo object. Values are integers in bytes when the Linux kernel exposes the field; optional fields are null when absent.

Requirements

Installation

Quick Start

MemoryInfo exposes public readonly properties for the supported /proc/meminfo fields, for example memTotal, memAvailable, swapTotal, and committedAS.

If you already have /proc/meminfo contents, parse them directly:

Properties

The descriptions below are short summaries of the Linux /proc/meminfo fields. Kernel details can vary between Linux versions. Optional properties are null when the current kernel does not expose the matching field.

Property /proc/meminfo key Availability Description
memTotal MemTotal Required Total usable physical RAM.
memFree MemFree Required Physical RAM that is currently unused.
memAvailable MemAvailable Optional Estimate of memory available for new applications without swapping.
buffers Buffers Required Memory used for temporary block device buffers.
cached Cached Required Memory used for the page cache, excluding swap cache.
swapCached SwapCached Optional Swap-backed memory that is also still cached in RAM.
active Active Optional Recently used memory that is less likely to be reclaimed.
inactive Inactive Optional Less recently used memory that is more likely to be reclaimed.
activeAnon Active(anon) Optional Active anonymous memory, not backed by files.
inactiveAnon Inactive(anon) Optional Inactive anonymous memory, not backed by files.
activeFile Active(file) Optional Active file-backed memory.
inactiveFile Inactive(file) Optional Inactive file-backed memory.
unevictable Unevictable Optional Memory that cannot be reclaimed by the kernel.
mlocked Mlocked Optional Memory locked into RAM with mlock.
swapTotal SwapTotal Required Total configured swap space.
swapFree SwapFree Required Swap space that is currently unused.
dirty Dirty Optional Memory waiting to be written back to disk.
writeback Writeback Optional Memory currently being written back to disk.
anonPages AnonPages Optional Non-file-backed pages mapped into user space.
mapped Mapped Optional Files mapped into memory by processes.
shmem Shmem Optional Shared memory, including tmpfs memory.
kReclaimable KReclaimable Optional Kernel allocations that the kernel can reclaim.
slab Slab Optional Kernel memory used for internal data structure caches.
sReclaimable SReclaimable Optional Reclaimable part of slab memory.
sUnreclaim SUnreclaim Optional Non-reclaimable part of slab memory.
kernelStack KernelStack Optional Memory used for kernel stacks.
pageTables PageTables Optional Memory used for page tables.
nfsUnstable NFS_Unstable Optional NFS pages sent to the server but not yet committed.
bounce Bounce Optional Memory used for block device bounce buffers.
writebackTmp WritebackTmp Optional Temporary memory used for FUSE writeback buffers.
commitLimit CommitLimit Optional Total memory that can be committed under the current overcommit policy.
committedAS Committed_AS Optional Total memory currently committed to processes.
vmallocTotal VmallocTotal Optional Total virtual address space available for vmalloc.
vmallocUsed VmallocUsed Optional Virtual address space currently used by vmalloc.
vmallocChunk VmallocChunk Optional Largest contiguous vmalloc area, often reported as 0 on newer kernels.

Behavior

Development

Install dependencies:

Run the full check suite:

Run checks individually:

Apply Rector changes explicitly:

Continuous integration runs composer validate --strict and composer check on PHP 8.2, 8.3, 8.4, and 8.5.

If PHP is not installed locally, use the official PHP Docker image:

The repository keeps composer.lock committed so development tooling is reproducible.

License

MIT


All versions of memory-info with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dev-hvmnd/memory-info contains the following files

Loading the files please wait ...