shepherdmat / phpinfo
Phpinfo allows you to easily retrieve and process information from the phpinfo function.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^7.4|^8.1
Requires (Dev)
- phpunit/phpunit: ^10.4
This package is not auto-updated.
Last update: 2025-04-29 02:29:40 UTC
README
Phpinfo allows you to easily retrieve and process information from the phpinfo()
function.
It provides a structured and organized representation of the information, making it more accessible and convenient for developers.
Features
- Retrieve and parse PHP configuration information.
- Organize PHP
phpinfo()
output into structured sections. - Filter and format relevant data for easy consumption.
Installation
To use Phpinfo in your project, you can install it via Composer:
composer require shepherdmat/phpinfo
Usage
Here's an example of how to use Phpinfo to retrieve and structure PHP information:
<?php require 'vendor/autoload.php'; use Shepherdmat\Phpinfo\Phpinfo; // Retrieve and parse all PHP information $info = Phpinfo::build(); var_dump($info); // Access information by section $generalInfo = Phpinfo::buildSection(Phpinfo::INFO_GENERAL); var_dump($generalInfo);
License
This bundle is under the MIT license.
For the whole copyright, see the LICENSE file distributed with this source code.