Download Ioncube
Visit https://www.ioncube.com/loaders.php and download the tar, tar.bz2 or zip package as per your OS/platform. For OS X download package versions(macOS 32 bits or macOS 64 bits or macOS M1), and decompress it.
Download for macOS (64 bits)
https://downloads.ioncube.com/loader_downloads/ioncube_loaders_mac_x86-64.tar.gz
Method #1
Manually find the php version, path for php.ini and required Ioncube file and its path for installation for your OS/platform and configure it.
Method #2
User Loader Wizard to know , Copy Installation Wizard file ‘loader-wizard.php’ to web server root & open URL http://localhost/loader-wizard.php This will automatically find of your php version, path for php.ini and required Ioncube file and its path for installation.
Find out the php version you are using by this command line.
$ php -v
PHP 7.3.29 (cli) (built: Sep 30 2021 13:17:10) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.29, Copyright (c) 1998-2018 Zend Technologies
Copy the ioncube_loader_mac_7.3.so file to the php extension library.
cp ~/Downloads/ioncube/ioncube_loader_mac_7.3.so /Applications/MAMP/bin/php/php7.3.29/lib/php/extensions/no-debug-non-zts-20180731
Know path for php.ini file
$ php -i | grep “php.ini”
/Applications/MAMP/bin/php/php7.3.29/conf/php.ini
Update php.ini file with ioncube extension path
zend_extension=”/Applications/MAMP/bin/php/php7.3.29/lib/php/extensions/no-debug-non-zts-20180731//ioncube_loader_mac_7.3.so”
Check php version again, it should return you ionCube PHP Loader version
$ php -v
PHP 7.3.29 (cli) (built: Sep 30 2021 13:17:10) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.29, Copyright (c) 1998-2018 Zend Technologies
with the ionCube PHP Loader v11.0.1, Copyright (c) 2002-2022, by ionCube Ltd.
Restart MAMP server
/Applications/MAMP/bin/stop.sh
/Applications/MAMP/bin/start.sh