<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/install.macosx.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'install.macosx.packages.php',
    1 => 'Installation on macOS using third-party packages',
    2 => 'Installation on macOS using third-party packages',
  ),
  'up' => 
  array (
    0 => 'install.macosx.php',
    1 => 'Installation on macOS',
  ),
  'prev' => 
  array (
    0 => 'install.macosx.php',
    1 => 'Installation on macOS',
  ),
  'next' => 
  array (
    0 => 'install.macosx.compile.php',
    1 => 'Compiling PHP on macOS',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'install/macos/packages.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="install.macosx.packages" class="sect1">
  <h2 class="title">Installation on macOS using third-party packages</h2>
  <p class="simpara">
   There are a few pre-packaged and pre-compiled versions of PHP for
   macOS. This can help in setting up a standard
   configuration, but if you need to have a different set of features
   (such as a secure server, or a different database driver), you may
   need to build PHP and/or your web server yourself. If you are unfamiliar
   with building and compiling your own software, it&#039;s worth
   checking whether somebody has already built a packaged
   version of PHP with the features you need.
  </p>
  <p class="simpara">
   An easy way to install PHP on macOS is with the
   <a href="https://brew.sh/" class="link external">&raquo;&nbsp;Homebrew</a> packaging manager.
  </p>
  <ol type="1">
   <li class="listitem">
    <p class="para">
     Install Homebrew by following the instructions on the website.
    </p>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong class="command">brew install php</strong>
    </span>
   </li>
  </ol>
  <p class="simpara">
   The following alternative resources also offer easy to install packages and
   precompiled binaries for PHP on macOS:
  </p>
  <ul class="simplelist">
   <li>
    <a href="http://www.macports.org/" class="link external">&raquo;&nbsp;MacPorts</a>
   </li>
   <li>
    <a href="http://www.finkproject.org/" class="link external">&raquo;&nbsp;Fink</a>
   </li>
  </ul>
 </div><?php manual_footer($setup); ?>