PHP Info
super-admin-org/phpinfo shows the output of phpinfo() as an admin page, split into sections (core, modules, environment).
| Package | super-admin-org/phpinfo |
| Admin URL | /admin/phpinfo |
| Menu | Phpinfo |
Secrets on this page
By default the page includes the environment and PHP variables sections, which contain your .env values such as APP_KEY and database passwords. Limit it to configuration and modules:
'extensions' => [
'phpinfo' => [
'what' => INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES,
],
],
and grant access only to trusted administrators. Disable it in production when you do not need it ('enable' => false).
Installation
composer require super-admin-org/phpinfo
php artisan admin:import phpinfo
The package has no tagged release yet. If Composer reports that no stable version matches, require the development version: composer require super-admin-org/phpinfo:dev-main.
admin:import adds the menu item only. To give a role access, create a permission with the HTTP path /phpinfo under Admin > Permission and assign it.
Configuration
| Key | Default | Meaning |
|---|---|---|
what | INFO_ALL | The phpinfo() flags to show. |
enable | true | false removes the page. |
Compatibility
| Laravel | PHP | State |
|---|---|---|
| 8 – 13 | 8.0+ | Works. On servers without output buffering the page can fail with "ob_end_clean(): Failed to delete buffer"; a fix is planned. |