title: List used PHP modules in code base
body: <p>I need to list all PHP extensions that's required by a given code base.
  What would be the best way to tackle this problem?</p>
  
  <p>My initial thought is to write a script that goes through all files and find all functions and compare them to a given extension/function database. Any other suggestions?</p>
  
  <hr>
  
  <p><strong>Update:</strong>  I already did some Bash script with grep and using get_loaded_modules, get_extension_funcs PHP functions, but this extension is exactly what I was looking for.</p>