tebe/phpinfo

Extends the phpinfo function and provides a structured output format using JSON.

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/tebe/phpinfo

v0.1.0 2026-01-01 12:35 UTC

This package is auto-updated.

Last update: 2026-01-01 15:15:18 UTC


README

Wraps the phpinfo function and provides a more structured output format using HTML, TEXT, and JSON. Supports all PHP versions from 5.4 onwards. Smoke tested with all PHP versions on latest Ubuntu.

Installation

composer require tebe/phpinfo

Usage

Web with HTML output

<?php

require dirname(__DIR__) . '/vendor/autoload.php';

tebe\phpinfo();

CLI with different text outputs

Text output

./vendor/bin/phpinfo
./vendor/bin/phpinfo --text

JSON output

./vendor/bin/phpinfo --json

Credits to https://www.reddit.com/user/HolyGonzo/.