You can check the presence of a module by typing php -m | grep -i . If you get a result, the module is present.

Sample:

Verify PHP module bz2:

root@box:~$ php -m | grep -i bz2
bz2

Verify PHP module intl:

root@box:~$ php -m | grep -i intl
intl