r/PHPhelp • u/thmsbrss • 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
View all comments
Show parent comment
3
u/thmsbrss Dec 30 '25
To be able to compare different versions of our custom built PHP Docker images by using "php -i" and diffing the output.
I want to see what is actually delivered and whether anything has changed.
And the whole process should be as automated as possible, which is why the output should be better structured than that of "php -i".
(I removed my thumbs down because the question makes perfect sense.)