---
title: "Pretty PHP Info: A Modern Replacement for `phpinfo()`"
url: https://daily.dev/posts/pretty-php-info-a-modern-replacement-for-phpinfo--6xwze33ye
source_url: https://laravel-news.com/pretty-phpinfo
type: article
source: "Laravel News"
published: 2026-04-08T12:51:26.458Z
updated: 2026-08-24T07:07:53.838Z
tags: ["php"]
reading_time: 3
upvotes: 65
comments: 4
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Pretty PHP Info: A Modern Replacement for `phpinfo()`

**[Laravel News](https://daily.dev/sources/ln)** · 3 min read · 65 upvotes · 4 comments

## Summary

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.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://laravel-news.com/pretty-phpinfo>

## Community discussion

Top comments from developers on daily.dev.

**@dimkiriakos** · 4 upvotes

> Any serious reason to replace the native command? Let mi guess.... A green dot to GitHub LOL

## Similar posts on daily.dev

- [PrettyPHP is an opinionated code formatter for PHP](https://daily.dev/posts/prettyphp-is-an-opinionated-code-formatter-for-php-ty1p60ant) · Laravel News · 17 upvotes · 0 comments
- [PHP Debugger: A Lightweight Xdebug Alternative Built for Speed](https://daily.dev/posts/php-debugger-a-lightweight-xdebug-alternative-built-for-speed-w7zvlhyc6) · Laravel News · 28 upvotes · 1 comments

---

Tags: [#php](https://daily.dev/tags/php)

[View this post on daily.dev](https://daily.dev/posts/pretty-php-info-a-modern-replacement-for-phpinfo--6xwze33ye)
