PHP extension mcrypt, intl, … missing as composer uses default environment

I got a bit tired of this error, it's a bit of nightmare to setup Magento2 on OSX using the MAMP PRO PHP in CLI. The entire error looks like this:

I have checked the damn php.ini file and everything  is in place. Also bear in mind that I have added all the extensions in MAMP…