<!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="ds.requirements.html">Requirements</a></div> <div class="next" style="text-align: right; float: right;"><a href="ds.constants.html">Predefined Constants</a></div> <div class="up"><a href="ds.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="ds.installation" class="section"> <h2 class="title">Installation</h2> <p class="para"> The easiest way to install the extension is via <a href="http://pecl.php.net/package/ds" class="link external">» PECL</a> <div class="example-contents screen"> <div class="cdata"><pre> pecl install ds </pre></div> </div> </p> <p class="para"> You can also build directly from source: <div class="example-contents screen"> <div class="cdata"><pre> # Dependencies you might need to install # sudo apt-get install git build-essential php7.0-dev git clone https://github.com/php-ds/extension "php-ds" cd php-ds # Build and install the extension phpize ./configure make make install # Clean up the build files make clean phpize --clean </pre></div> </div> </p> <p class="para"> If you're on Windows, you can <a href="https://pecl.php.net/package/ds" class="link external">» download a compiled .dll on PECL</a> </p> <blockquote class="note"><p><strong class="note">Note</strong>: <p class="para"> If you're using Composer, it's highly recommended that you include <a href="https://packagist.org/packages/php-ds/php-ds" class="link external">» php-ds/php-ds</a> in your project so that your code is still functional in an environment where the extension is not installed. The extension will take priority if installed. </p> </p></blockquote> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ds.requirements.html">Requirements</a></div> <div class="next" style="text-align: right; float: right;"><a href="ds.constants.html">Predefined Constants</a></div> <div class="up"><a href="ds.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>