I\'m using PHP 7.2 on OS X El Capitan, installed using Homebrew (of course). Now I\'d like to use some IMAP functions from PHP\'s IMAP extension, but no matter what I search
Here is how I solved this problem under Mojave:
First, I installed IMAP module for PHP 7.2
brew install kabel/php-ext/php@7.2-imap
Secondly I copied the imap.so from installed folder to the 'extension_dir' used by php.ini
sudo cp /usr/local/lib/php/20170718/imap.so to /usr/local/lib/php/pecl/20170718