Linux Systems
This extension requires libsodium ≥ 1.0.8.
Setup
Required
This extension requires libsodium ≥ 1.0.8.
Install
As of PHP 7.2.0 this extension is bundled with PHP. For older PHP versions this extension is available via PECL.
Linux Systems
In order to use this extension you must compile PHP with sodium support by using the --with-sodium[=DIR] configure option.
Windows
In order to use this extension you have to add extension=php_sodium.dll to Ini.
Installation via PECL
Info Packagelibsodium