title: Add imap extension to PHP on OSX El Capitan
body: <p>I'm working on a project where I need imap_open() function and I just bought my first Macbook Pro with OSX El Capitan on it.</p>
  
  <p>I activated the extension in php.ini but the .so file is missing, searching on how to install imap extension doesn't work on El Capitan and while compiling I get error <code>osdep.c:170:10: fatal error: 'x509v3.h' file not found</code></p>
  
  <p>Anyone know what should I install in order to get that header file or is there any easy way to install extension like on Linux (yum install php5-imap, apt-get install php5-imap) ?</p>