array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'ds.installation.php', 1 => 'Installation', ), 'up' => array ( 0 => 'ds.setup.php', 1 => 'Installing/Configuring', ), 'prev' => array ( 0 => 'ds.requirements.php', 1 => 'Requirements', ), 'next' => array ( 0 => 'ds.constants.php', 1 => 'Predefined Constants', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/ds/setup.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
The easiest way to install the extension is via » PECL
pecl install ds
You can also build directly from source:
# 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
If you're on Windows, you can » download a compiled .dll on PECL
Note:
If you're using Composer, it's highly recommended that you include » php-ds/php-ds 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.