Appearance
PHP
Installation
bash
brew install php phpunit composer
Package manager
Composer is a dependency manager for PHP.
Set vendor bin to path
bash
export PATH="$PATH:$HOME/.composer/vendor/bin"
XDebug
bash
pecl install xdebug
Configuration for macOS (Docker)
bash
xdebug.remote_host=docker.for.mac.localhost
xdebug.remote_connect_back=0
Code styling
bash
# With brew
brew install php-code-sniffer php-cs-fixer phpmd
# With composer
composer global require squizlabs/php_codesniffer
composer global require friendsofphp/php-cs-fixer
composer global require "phpmd/phpmd"