Your understanding of alias is correct. It looks like it's comes from the ” character instead of "
alias composer=”php /usr/local/bin/composer/composer.phar”
this is why you got
zsh: command not found: ”php
and not
zsh: command not found: php
Maybe try like this:
alias composer="php /usr/local/bin/composer/composer.phar"