Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 604 Bytes

README.md

File metadata and controls

37 lines (28 loc) · 604 Bytes

pgpTools

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();
  }
}