安裝

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 php.ini.

Installation via PECL

安裝此 PECL 擴展相關的信息可在手冊中標題為 PECL 擴展的安裝章節(jié)中找到。更多信息如新的發(fā)行版本、下載、源文件、 維護人員信息及變更日志等,都在此處: ? https://pecl.php.net/package/libsodium