Skip to content

Instantly share code, notes, and snippets.

@tareq1988
Last active January 29, 2024 07:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tareq1988/2f3a08093503c937912e9044ec9b3459 to your computer and use it in GitHub Desktop.
Save tareq1988/2f3a08093503c937912e9044ec9b3459 to your computer and use it in GitHub Desktop.
PHP Extensions Support
<?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