vipsoft / mysql-login
Reader/decoder for .mylogin.cnf -- obfuscated MySQL authentication credentials
Installs: 245
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/vipsoft/mysql-login
Requires
- php: >=5.3.6
- ext-zip: *
Requires (Dev)
This package is auto-updated.
Last update: 2025-11-29 02:58:29 UTC
README
Reader/decoder for .mylogin.cnf -- MySQL's obfuscated authentication credentials login path file
Features
-
Simple to use!
use VIPSoft\MySQLLogin; $reader = new MySQLLogin(get_env('HOME') . '/.mylogin.cnf'); // get decoded credentials $credentials = $reader->get('client'); $host = $credentials['host']; $user = $credentials['user']; $password = $credentials['password'];
References
Copyright
Copyright (c) 2023 Anthon Pang. See LICENSE for details.
Contributors
- Anthon Pang robocoder