Using wkhtmltopdf with MAMP

I try to get wkhtmltopdf working on my MAMP Pro (Ver. 5.3) development environment. In web2print-output.log the following message appears when I click on “Generate PDF” in a print page:

In Locale.php line 236:
The Symfony\Component\Intl\Locale\Locale::getPrimaryLanguage() is not implemented. Please install the "intl" extension for full localization capabilities.                                                      

pimcore:web2print:pdf-creation [-p|--processId PROCESSID] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [--ignore-maintenance-mode] [--maintenance-mode] [-e|--env ENV] [--no-debug] [--] <command>

I have tried the following to fix the problem:

  1. PIMCORE - Web2Print Settings -> Click on “Test”: A PDF is generated and shown in the browser. So that seems to be OK.

  2. phpinfo shows me

  3. php -m in console shows me

So where the hell is the problem ;-)?

My Environment:
Mac Mojave 10.14.4
MAMP Pro 5.3
Pimcore 5.8.3
PHP 7.2.14

Looks like your PHP is using different INI files for Apache and CLI.
Run php --ini in your console and look for Loaded Configuration File in output for the location of php.ini used by your CLI