PHP Extensions List

PHP has lots of extensions and many are loaded by defaults based on PHP version you are using.

I was just reading about this PHP function get_loaded_extensions(), which gives you list of PHP extensions loaded in your installation and thought of writing this post.

To get list of available PHP extensions, follow these URLS:

Now, PHP code to list loaded extensions in your PHP installation:

PHP Extensions List

<?php
echo "<h1>PHP Extensions List (loaded extensions only):</h1>";
echo "<p><strong> My PHP installation version: " . PHP_VERSION . '</strong><br>';
echo 'Click on the links get information about each extension's functions. </p>';
function extensionFunctions($ext)
{
    $extFuncs = get_extension_funcs($ext);
    while(list($fid, $fname) = each($extFuncs))
    {
        echo " - " . ($fid + 1) . " $fname <br>";
    }
}
echo "| <a href='$_SERVER[PHP_SELF]'>Extensions Only</a> | <a href='$_SERVER[PHP_SELF]?expand=*'>Expand functions</a> |<br>";
$loaded = get_loaded_extensions();
while(list($id, $name) = each($loaded)) {
    echo "<b>" . ($id + 1) . ". <a href='$_SERVER[PHP_SELF]?expand=$name#$name'><span id=$name>$name</span></a></b><br>";
    $expand = $_GET['expand'];
    if(isset($expand)) {
         if($expand == $name || $expand == "*") {
            extensionFunctions($name);
         }
    }
}
?>

The code beautiful code is written by florinl. It was not working on my environment as it is suited for old installation. I have modified it and hosted it here, so that you can learn and refer whenever and from where ever you want.

On my Local PHP installation, these PHP Extensions are available:

1. Core

2. bcmath

3. calendar

4. com_dotnet

5. ctype

6. date

7. ereg

8. filter

9. ftp

10. hash

11. iconv

12. json

13. mysqlnd

14. odbc

15. openssl

16. pcre

17. Reflection

18. session

19. SPL

20. standard

21. tokenizer

22. zlib

23. libxml

24. dom

25. bz2

26. SimpleXML

27. wddx

28. xml

29. xmlreader

30. xmlwriter

31. xsl

32. apache2handler

33. Phar

34. curl

35. mbstring

36. exif

37. fileinfo

38. gd

39. gettext

40. imap

41. mcrypt

42. mysql

43. mysqli

44. PDO

45. pdo_mysql

46. PDO_ODBC

47. pdo_sqlite

48. soap

49. sockets

50. SQLite

51. sqlite3

52. tidy

53. xmlrpc

54. zip

55. ming

56. pdf

57. mhash

58. xdebug

Check for more tools.