<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->

<chapter xml:id="sodium.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
 &reftitle.setup;

 <section xml:id="sodium.requirements">
  &reftitle.required;
  <para>
   This extension requires <link xlink:href="&url.libsodium;">libsodium</link>
   ≥ 1.0.8.
  </para>
 </section>

 <section xml:id="sodium.installation">
  &reftitle.install;
  <para>
   As of PHP 7.2.0 this extension is bundled with PHP. For older PHP versions
   this extension is available via <acronym>PECL</acronym>.
  </para>

  <section xml:id="sodium.installation.new">
   <title>Linux Systems</title>
   <para>
    In order to use this extension you must compile PHP with sodium support by
    using the <option role="configure">--with-sodium[=DIR]</option> configure
    option.
   </para>
  </section> 

  <section xml:id="sodium.installation.windows">
   <title>Windows</title>
   <para>
    In order to use this extension you have to add
    <literal>extension=php_sodium.dll</literal> to &php.ini;.
   </para>
  </section>
 
  <section xml:id="sodium.installation.pecl">
   <title>Installation via PECL</title>
   <para>
    &pecl.info;
    <link xlink:href="&url.pecl.package;libsodium">&url.pecl.package;libsodium</link>
   </para>
  </section>

 </section> 

 <section xml:id="sodium.configuration">
  &reftitle.runtime;
  &no.config;
 </section>

 <section xml:id="sodium.resources">
  &reftitle.resources;
  &no.resource;
 </section>

</chapter>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
