GnuPG allows to encrypt and sign your data and communication, features a versatile key management system as well as access modules for all kinds of public key directories. To install gnupg-php
Installing gnupg prerequisite
#yum install gcc libgpg-error gpgme gpgme-devel
after that
#pecl install gnupg
configuration option “php_ini” is not set to php.ini location
You should add “extension=gnupg.so” to php.ini
You should add “extension=gnupg.so” to php.ini
Now, add the ‘gnupg.so‘ extension to ‘/etc/php.ini‘ file.
#echo extension=gnupg.so >> /etc/php.ini
# service httpd restart
# php -m | grep gnupg
# service httpd restart
# php -m | grep gnupg
gnupg
That’s it.