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/colshrapnel Dec 30 '25

You said diffing, but shouldn't it be simpler to use diff on a text output?

2

u/thmsbrss Dec 30 '25

I think it works quite the same, since json (pretty printed) or yaml is text too. But a bit more structured.