Last active
January 29, 2024 07:57
-
-
Save tareq1988/2f3a08093503c937912e9044ec9b3459 to your computer and use it in GitHub Desktop.
PHP Extensions Support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$extensions = [ | |
'apcu', | |
'bc', | |
'ctype', | |
'curl', | |
'dom', | |
'exif', | |
'fileinfo', | |
'filter', | |
'ftp', | |
'gd', | |
'hash', | |
'iconv', | |
'igbinary', | |
'imagick', | |
'intl', | |
'json', | |
'mbstring', | |
'memcached', | |
'mongodb', | |
'opcache', | |
'openssl', | |
'pcre', | |
'pdo', | |
'pdo_mysql', | |
'redis', | |
'session', | |
'shmop', | |
'simplexml', | |
'sockets', | |
'sodium', | |
'ssh2', | |
'tokenizer', | |
'xml', | |
'xmlreader', | |
'zip', | |
'zlib' | |
]; | |
foreach ($extensions as $extension) { | |
if (extension_loaded($extension)) { | |
echo "$extension: ✅<br>\n"; | |
} else { | |
echo "$extension: ❌<br>\n"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment