How to view all installed PHP modules?

PHP: How to view all installed PHP modules?

It is very simple to see all installed PHP modules. Just run the following command:

php -m

For example, the output on one of my VM machines is:

$ php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
imap
json
ldap
libxml
mbstring
mcrypt
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
Phar
posix
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
sqlite3
standard
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib

[Zend Modules]
webdevetc profile pic
webdevetc

I am a 29 year old backend web developer from London, mostly focusing on PHP and Laravel lately. This (webdevetc.com) is my blog where I write about some web development topics (PHP, Laravel, Javascript, and some server stuff). contact me here.



More...


Comments and discussion about How to view all installed PHP modules?

Found this interesting? Maybe you want to read some more in this series?

Or see other topics in the PHP language

Or see other languages/frameworks:
PHP Laravel Composer Apache CentOS and Linux Stuff WordPress General Webdev and Programming Stuff JavaScript
Or see random questions

What does 'final class' and 'final function' (final method) mean in PHP?

How to block multiple IP addresses in .htaccess

How do Invokable Controllers work in Laravel?

How to query mysql using PDO in PHP?

How to exclude URLs from the Laravel CSRF protection?

How to find the index of a value in an array in JS?

How to select what columns to return when calling ::all()

How to block an IP address in .htaccess

How to check if a (blade) view file exists

How to make multiple routes share the same URL structure or URL parameters