Download the PHP package stechstudio/phpinfo without Composer
On this page you can find all versions of the php package stechstudio/phpinfo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stechstudio/phpinfo
More information about stechstudio/phpinfo
Files in stechstudio/phpinfo
Package phpinfo
Short Description Easily interact with phpinfo() configuration
License MIT
Informations about the package phpinfo
PHP info
This package will get the output from phpinfo()
and provide you with:
- Lookup methods for inspecting specific modules and configs
- Collection-based data structure for iterating over and building your own custom output
- A pretty, responsive, searchable interface that replaces the default
phpinfo()
page
Installation
Quickstart
If you want to display a pretty, mobile-friendly phpinfo()
page, just call render()
on the Info
factory class:
Interact with phpinfo()
configuration
If you're looking to directly inspect and interact with the configuration, you need to first capture it:
If you have phpinfo()
output that you've saved previously and want to load and parse:
From here you can query some base info, modules, and configs:
Iterating over data structure
You can access a data structure of collections to easily loop over your phpinfo()
configuration.
You see that we have four levels to the data structure:
- Base
info
containingmodules()
- Modules with
name()
method, and containinggroups()
- Groups containing
configs()
and optionally withheadings()
- Configs with
name()
,value()/localValue()
, and optionallymasterValue()
You can also access configs directly from the Module and base Info levels:
Modules and Groups
We've already seen how to iterate over modules and groups. Sometimes you may want to look up a specific module and inspect it directly.
Here is a super simple example to display modules and configuration:
All versions of phpinfo with dependencies
ext-dom Version *
illuminate/collections Version ^7.0|^8.0|^9.0|^10.0|^11.0