placetopay/php-gnupg

一个使用 GnuPG 加密和解密的库

0.2.0 2021-10-13 21:06 UTC

This package is auto-updated.

Last update: 2024-09-14 04:17:27 UTC


README

此库需要 GPG 二进制文件才能运行

安装

composer require placetopay/php-gnupg

使用

$gnupg = new \PlacetoPay\GnuPG\GnuPG([
    'gpgExecutable' => '/usr/local/bin/gpg', // The full path to the GPG executable
    'ringPath' => '~/.gnupg' // Path to the folder containing the keyring
]);

限制

gpg (GnuPG) 版本 < 1.9