r/PHPhelp • • Dec 30 '25

Machine readable php -i output

Is there a CLI tool that outputs information similar to that from `php -i` in a machine-readable format such as JSON, YAML, or similar?

4 Upvotes

17 comments sorted by

View all comments

Show parent comment

2

u/thmsbrss Dec 30 '25

Good idea, but ini_get_all lacks some information, according to https://github.com/php/php-src/issues/11117

It seems that there are some packages, see https://packagist.org/?query=phpinfo. Most of them for frameworks, which is a bit too much.