xqus/pgp-tools

Lookup and manage PGP keys from keyservers

0.1.0 2017-01-15 09:30 UTC

This package is auto-updated.

Last update: 2024-03-29 03:38:06 UTC


README

Lookup and manage PGP keys from keyservers.

Build Status

Installing

composer require xqus/pgp-tools

Finding a key

<?php
use xqus\pgpTools\Lookup;

$keys = $lookup->find('email@example.org');

foreach($keys as $key) {
  echo $key->fingerprint;
  echo $key->keylen;
  echo $key->created;
  echo $key->expires;

  /* Get UIDs */

  foreach($key->uids as $uid) {
    echo $uid->name();
    echo $uid->comment();
    echo $uid->email();
  }
}