Skip to content

Implementation of zbateson/gpg-interface using php/pecl gnupg

License

Notifications You must be signed in to change notification settings

zbateson/gpg-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gpg-php

Implementation of zbateson/crypt-interface using pecl/gnupg. This library is intended for use with zbateson/mail-mime-parser to integrate encryption, decryption, signing, or verification with the mail-mime-parser library.

The library isn't intended to abstract gnupg functions, and so its expected that any required setup is performed using the gnupg APIs directly. Click here for the gnupg documentation.

NOTE: this library is still a work-in-progress, and its usage in zbateson/mail-mime-parser hasn't yet been completed.

To include it for use in your project, please install via composer:

composer require zbateson/gpg-php

Requirements

gpg-php requires PHP 5.4 or newer.

Usage

// see PHP's documentation for setup instructions
$res = \gnupg_init();

// ...
// specify keys to use, etc...
// ...

$gpgPhp = new GpgPhp($res);

// pass it to ZBateson\MailMimeParser

// ... stay tuned

License

BSD licensed - please see license agreement.

About

Implementation of zbateson/gpg-interface using php/pecl gnupg

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages