xp-forge / keepass
KeePass databases
Installs: 10 801
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=7.0.0
- xp-framework/core: ^12.0 | ^11.0 | ^10.0
Requires (Dev)
- xp-framework/test: ^2.0 | ^1.0
README
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();