Pretty PHP Info is a PHP package that replaces the default `phpinfo()` output with a modern, dark-mode-ready, searchable UI. Beyond the visual upgrade, it provides a programmatic API via `Info::capture()` to query PHP configuration, check loaded modules, and retrieve both local and master (php.ini default) values for any directive — something `ini_get()` alone cannot do. The package supports iterating over the full configuration structure using collection methods, and can parse previously saved phpinfo HTML or text output. Requires PHP 8.3+ and ext-dom, installable via Composer.

3m read timeFrom laravel-news.com
Post cover image
Table of contents
# Querying PHP Configuration Programmatically# Why Not Just Use ini_get() ?# Iterating Over Configuration# Installation
4 Comments

Sort: