vipsoft/mysql-login

Reader/decoder for .mylogin.cnf -- obfuscated MySQL authentication credentials

1.0.0 2023-12-02 04:02 UTC

This package is auto-updated.

Last update: 2024-05-01 00:17:39 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