Install the packages that you'll need. Drupal/coder includes phpcs. If you're not wanting to use a specific hook, then you don't need to install the associated packages.
composer global require drupal/coder phpmd/phpmd sebastian/phpcpd
Set the path in your shell startup script (ex: .zshrc or .bashrc).