Reputation: 9294
Is there a way I can find out what modules are being used by my php application without going through thousands of lines of code?
I can get the whole list of PHP modules on current server via php -m
, but I want to know if there is any way to find out modules required by my app in particular.
Upvotes: 1
Views: 101
Reputation: 20899
You should look into using get_loaded_extensions()
or extension_loaded()
.
Upvotes: 0
Reputation: 212412
There is a PEAR package called PHP_CompatInfo that does something like that:
Find out the minimum version and the extensions required for a piece of code to run
It's marked as no longer maintained, so there might be some problems using it with recent versions of PHP
Upvotes: 1