DEV Community

Pradeep Kumar
Pradeep Kumar

Posted on

Install php imap extension support on MacOS

Assuming you have already installed php using

brew install php
Enter fullscreen mode Exit fullscreen mode

To install imap extension support, run:

brew tap shivammathur/php
Enter fullscreen mode Exit fullscreen mode

then

brew tap shivammathur/extensions
Enter fullscreen mode Exit fullscreen mode
brew install imap
Enter fullscreen mode Exit fullscreen mode

It will install imap for the default php version.

To install php version specific imap, run:

brew install imap@8.1
Enter fullscreen mode Exit fullscreen mode

Top comments (1)

Collapse
 
leslieeeee profile image
Leslie

Have you tried ServBay.dev?
It's a much easier tool for PHP developers, providing a user-friendly experience, especially for beginners. It supports all versions of PHP, MariaDB, PostgreSQL, as well as Redis and Memcached. You can run multiple PHP instances simultaneously and switch between them effortlessly. It also offers easy updates without the need to configure environment variables. This tool has greatly simplified my PHP development and is definitely worth trying!