2017 © Pedro Peláez
 

library phpinfo

Get the output of phpinfo() as an array.

image

outcompute/phpinfo

Get the output of phpinfo() as an array.

  • Saturday, February 18, 2017
  • by outcompute
  • Repository
  • 1 Watchers
  • 5 Stars
  • 45 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 2 Versions
  • 7 % Grown

The README.md

PHPInfo

A simple PHP library to get the output of phpinfo() 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 & PHP License, (*1)

Installation

Add this line to your composer.json file,, (*2)

"outcompute/phpinfo": "1.0.0"

and run., (*3)

$ composer update

How to use

setText($phpinfoAsString);
var_export($phpInfo->get());
?>

TODO

(PRs are welcome) - Add support for parsing the HTML version (the _parseHTML() method) - Add test cases, (*4)

License

GPL v2, (*5)

The Versions

18/02 2017

dev-master

9999999-dev

Get the output of phpinfo() as an array.

  Sources   Download

GPL-2.0

by Avatar outcompute

php array phpinfo

18/02 2017

1.0.0

1.0.0.0

Get the output of phpinfo() as an array.

  Sources   Download

GPL-2.0

by Avatar outcompute

php array phpinfo