xp-forge/keepass

KeePass databases

v2.1.0 2024-03-24 11:37 UTC

This package is auto-updated.

Last update: 2024-11-24 13:05:01 UTC


README

Build status on GitHub XP Framework Module BSD Licence Requires PHP 7.0+ Supports PHP 8.0+ Latest Stable Version

Read access to KeePass database files.

Example

use info\keepass\{KeePassDatabase, Key};
use io\streams\FileInputStream;
use util\cmd\Console;

$db= KeePassDatabase::open(new FileInputStream('database.kdbx'), new Key('passphrase'));
Console::writeLine($db);

// Show top-level groups and password entries inside these
foreach ($db->groups() as $group) {
  foreach ($group->passwords() as $name => $password) {
    Console::writeLine($name, ': ', $password);
  }
}
$db->close();

See also

http://keepass.info/