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

How to block multiple IP addresses in .htaccess

What are the main error types in PHP

What are some ways you can log debug messages and data in JS?

How to find an item by Primary Key in Eloquent, or throw a ModelNotFoundException exception if it isn't found?

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

How to hide the server signature (hide Apache info) from HTTP headers with .htaccess

How to increment a value in the database

What is Bubble sort, and how to write an implementation of it in PHP

How to force non www in htaccess

How to select all rows for a certain month (or day, year or time), using Eloquent