Install ionCube Loader

This example uses PHP 7.4.8. Please be aware if you are installing ionCube for a different PHP version you will need to use a different ionCube file version and install to the corresponding PHP version directory.

  1. Download the “macOS (64 bits)” (tar.gz or zip) version of ionCube.

  2. Unpack the downloaded archive. In your resulting “ioncube” directory there will be several files. Copy only the “” file to “/Applications/MAMP/bin/php/php7.4.8/lib/php/extensions/no-debug-non-zts-20190902”. The “” file is good for all PHP 7.4.x versions.

  3. Add the following line to your PHP 7.4.8 template file. You can reach your template files in MAMP PRO through the menu bar, File > Open Template > PHP > 7.4.8. Be sure this line is above all other Zend directives.

  1. Restart your servers in MAMP PRO.

  2. To check if ionCube is loaded, use the output of phpinfo(). You should find the following section there:

MAMP PRO - ionCube Loader