<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Installation</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="sodium.requirements.html">Requirements</a></div> <div class="next" style="text-align: right; float: right;"><a href="sodium.configuration.html">Runtime Configuration</a></div> <div class="up"><a href="sodium.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="sodium.installation" class="section"> <h2 class="title">Installation</h2> <p class="para"> As of PHP 7.2.0 this extension is bundled with PHP. For older PHP versions this extension is available via <acronym title="PHP Extension and Application Repository">PECL</acronym>. </p> <div class="section" id="sodium.installation.new"> <h2 class="title">Linux Systems</h2> <p class="para"> 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="para"> In order to use this extension you have to add <em>extension=php_sodium.dll</em> 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="para"> Information for installing this PECL extension may be found in the manual chapter titled <a href="install.pecl.html" class="link">Installation of PECL extensions</a>. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: <a href="http://pecl.php.net/package/libsodium" class="link external">» http://pecl.php.net/package/libsodium</a> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="sodium.requirements.html">Requirements</a></div> <div class="next" style="text-align: right; float: right;"><a href="sodium.configuration.html">Runtime Configuration</a></div> <div class="up"><a href="sodium.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>