tebe/phpinfo

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

Maintainers

Package info

github.com/tbreuss/phpinfo

Homepage

pkg:composer/tebe/phpinfo

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

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

This package is auto-updated.

Last update: 2026-03-01 15:48:16 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/.