<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/sodium.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'sodium.installation.php',
    1 => '安装',
    2 => '安装',
  ),
  'up' => 
  array (
    0 => 'sodium.setup.php',
    1 => '安装/配置',
  ),
  'prev' => 
  array (
    0 => 'sodium.requirements.php',
    1 => '需求',
  ),
  'next' => 
  array (
    0 => 'sodium.constants.php',
    1 => '预定义常量',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/sodium/setup.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="sodium.installation" class="section">
  <h2 class="title">安装</h2>
  <p class="simpara">
   As of PHP 7.2.0 this extension is bundled with PHP. For older PHP versions
   this extension is available via <abbr title="PHP Extension and Application Repository">PECL</abbr>.
  </p>

  <div class="section" id="sodium.installation.new">
   <h2 class="title">Linux Systems</h2>
   <p class="simpara">
    In order to use this extension you must compile PHP with sodium support by
    using the <strong class="option configure">--with-sodium[=DIR]</strong> configure
    option.
   </p>
  </div>

  <div class="section" id="sodium.installation.windows">
   <h2 class="title">Windows</h2>
   <p class="simpara">
    In order to use this extension you have to add
    <code class="literal">extension=php_sodium.dll</code> to <var class="filename">php.ini</var>.
   </p>
  </div>

  <div class="section" id="sodium.installation.pecl">
   <h2 class="title">Installation via PECL</h2>
   <p class="simpara">
    安装此 PECL 扩展相关的信息可在手册中标题为
<a href="install.pecl.php" class="link">PECL
扩展的安装</a>章节中找到。更多信息如新的发行版本、下载、源文件、
维护人员信息及变更日志等，都在此处：
    <a href="https://pecl.php.net/package/libsodium" class="link external">&raquo;&nbsp;https://pecl.php.net/package/libsodium</a>
   </p>
  </div>

 </div><?php manual_footer($setup); ?>