Steps
- Download and Install JDK - https://www.oracle.com/java/technologies/downloads/
- Download and Install Eclipse for PHP developers - https://www.eclipse.org/downloads/packages/
- Install Homebrew - curl -fsSL -o install.sh https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh
- Install php and pecl - brew install php
- Install xdebug - pecl install xdebug
- Edit php.ini - vi /usr/local/etc/php/8.0/php.ini
xdebug.mode=debug
xdebug.client_port=9000