Reader/decoder for .mylogin.cnf
-- MySQL's obfuscated authentication credentials login path file
-
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'];
Copyright (c) 2023 Anthon Pang. See LICENSE for details.
- Anthon Pang robocoder