PHPackages                             outcompute/phpinfo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. outcompute/phpinfo

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

outcompute/phpinfo
==================

Get the output of phpinfo() as an array.

1.1.0(6y ago)655.3k↓59.5%8[1 issues](https://github.com/outcompute/PHPInfo/issues)1GPL-2.0PHP

Since Feb 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/outcompute/PHPInfo)[ Packagist](https://packagist.org/packages/outcompute/phpinfo)[ RSS](/packages/outcompute-phpinfo/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)DependenciesVersions (3)Used By (1)

PHPInfo
=======

[](#phpinfo)

A simple PHP library to get the output of [phpinfo()](http://php.net/manual/en/function.phpinfo.php) as an array when invoked from a command line script. You can submit a PR if you adapt it to the HTML version. Although by now you can compile the information to a reasonable degree of completeness from other functions, so this will be of use only when you absolutely have to parse phpinfo().

- Returns nested information for Configuration, modules in Configuration, Environment, PHP Variables &amp; PHP License

### Installation

[](#installation)

Add this line to your composer.json file,

```
"outcompute/phpinfo": "1.0.0"
```

and run.

```
$ composer update
```

### How to use

[](#how-to-use)

```
