Skip to content

Instantly share code, notes, and snippets.

@carlosleonam
Last active June 21, 2021 19:49
Show Gist options
  • Save carlosleonam/d02e50ec911acd8bc6cf326fcd2f3158 to your computer and use it in GitHub Desktop.
Save carlosleonam/d02e50ec911acd8bc6cf326fcd2f3158 to your computer and use it in GitHub Desktop.
PHP - command line - show extensions loaded

PHP - command line - show extensions loaded

Using any of bwlow methods:

Simple list:

php -r "print_r(get_loaded_extensions());"

or, for detail list:

php -r "phpinfo(INFO_MODULES);"

(if desire, use ' | less' to browsing results)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment