vipsoft / mysql-login
Reader/decoder for .mylogin.cnf -- obfuscated MySQL authentication credentials
1.0.0
2023-12-02 04:02 UTC
Requires
- php: >=5.3.6
- ext-zip: *
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-01 00:07:38 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