Download the PHP package teksite/systeminfo-laravel without Composer

On this page you can find all versions of the php package teksite/systeminfo-laravel. 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 systeminfo-laravel

Teksite SystemInfo for Laravel

Fast, secure server, PHP and Laravel runtime information - plus real-time metrics shaped for Chart.js.

Linux and Windows are fully supported. Other platforms (macOS, BSD) get a safe fallback driver (load average, disks, PHP/Laravel data) instead of an exception.

Requirements

PHP 8.3+, Laravel 11 / 12 / 13, ext-mbstring. Nothing else: shell_exec is not needed (only proc_open, and only for GPU detection on Linux and for everything on Windows).

Installation

The service provider and the SystemInfo facade are auto-discovered.

Quick start

Live snapshot

Unavailable values are null, never a fake 0. A counter that went backwards (reset, wrap) yields null for that point - an honest gap in the chart instead of a spike.

HTTP API

Routes are registered under /system-info (configurable).

Endpoint Purpose
GET /system-info/metrics One live snapshot. ?format=json (default) or ?format=chartjs, &labels=time\|iso\|ms
GET /system-info/history Last N points, Chart.js-shaped. ?points=60, ?since=<epoch ms> for incremental polling
GET /system-info/info Report. ?only=hardware,os, ?fresh=1. Limited to http.info_sections
GET /system-info/stream-url Short-lived signed URL for the SSE stream
GET /system-info/stream Server-Sent Events (signed URL only)

Authorisation (read this before deploying)

Outside the local environment every request is rejected (403) until you configure one of:

Tokens are never accepted in the query string (they leak into logs and referrers). Endpoints are rate-limited (120/min per IP by default).

Chart.js

The payload for every endpoint with format=chartjs / history:

Polling (simplest, one cheap request per tick, works with any middleware/auth):

Server-Sent Events (push; EventSource cannot send headers, hence the signed URL):

SSE trade-off. Each open stream holds one PHP worker for up to stream.max_duration (55 s), then ends cleanly so the browser reconnects. With a small PHP-FPM pool, or under Octane/Swoole, prefer polling. Many viewers share the same sample either way (see below).

For a time axis use ?labels=ms (epoch milliseconds) with a Chart.js date adapter, or ?labels=iso.

How it stays fast

Concern Approach
CPU %, network, disk I/O are rates The previous raw sample lives in the cache. A request takes one new sample and diffs it - no sleep(). Only a cold cache pays one short (250 ms) window.
50 dashboards polling Callers within live.min_interval share one snapshot; computation is behind a lock with double-checked caching (no stampede).
Static data (CPU model, OS, GPU, ...) Cached for cache.inventory_ttl (1 h).
Linux /proc + /sys only. No fork/exec. A sample takes ~0.1 ms.
Windows One PowerShell call per sample / one for the whole inventory (not ~10 per call).
History Bounded ring buffer (history.points, default 300), written at most every history.resolution seconds.
Database size Cached for cache.database_ttl (can be a heavy information_schema query).

Use a shared cache store (Redis, Memcached, database, file). With the array store the previous sample cannot survive between requests, so each request pays the sampling window.

Windows note: a PowerShell start costs several hundred milliseconds. Keep polling intervals at 2-5 s there; Linux handles 1 s comfortably.

Security model

Configuration

Publish config/system-info.php; every key is documented inline and every key is optional (nested options are deep-merged with defaults). Notable ones:

Key Default Meaning
http.enabled true Register the routes at all
http.token / allowed_ips / allow_local null / [] / true Access control
http.middleware [] Extra middleware, e.g. ['web', 'auth']
live.min_interval 1.0 Seconds during which callers share a snapshot
history.points x history.resolution 300 x 2.0 10 minutes of history
disk.paths null null = auto-detect local filesystems; or list paths explicitly
network.exclude_interfaces docker/veth/lo/... Globs ignored for throughput and local IP
network.public_ip.enabled false Opt-in outbound lookup
cache.store default store Use a shared store in production

Containers

Inside Docker/Kubernetes /proc still reports the host. The package therefore also reads the cgroup limit (v1 and v2): container.memory is the number that matters for OOM, and hardware.cpu.limit_cores shows the CPU quota. CPU % is host-wide.

Programmatic use of drivers

Repo\PhpInfo, Repo\LaravelInfo and Repo\DatabaseInfo keep their collect() methods.

Upgrading from 0.0.x

Full list in CHANGELOG.md.

Limitations

Testing

The core (drivers, calculator, history, chart formatter) is framework-independent and unit-tested against fixture /proc trees and a faked PowerShell; HTTP behaviour is covered with Orchestra Testbench.

Roadmap

Prometheus exposition endpoint, threshold alerts (webhook / notification), macOS driver, per-process top-N (opt-in), queue / Horizon health.

License

MIT (c) Teksite - [email protected] - https://teksite.net


All versions of systeminfo-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-json Version *
ext-mbstring Version *
ext-curl Version *
illuminate/cache Version ^11.0 || ^12.0 || ^13.0
illuminate/console Version ^11.0 || ^12.0 || ^13.0
illuminate/contracts Version ^11.0 || ^12.0 || ^13.0
illuminate/database Version ^11.0 || ^12.0 || ^13.0
illuminate/http Version ^11.0 || ^12.0 || ^13.0
illuminate/routing Version ^11.0 || ^12.0 || ^13.0
illuminate/support Version ^11.0 || ^12.0 || ^13.0
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 teksite/systeminfo-laravel contains the following files

Loading the files please wait ...