vipsoft / mysql-login
.mylogin.cnf 的读取器/解码器 -- 隐藏的 MySQL 认证凭证
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-08-31 00:49:13 UTC
README
.mylogin.cnf 的读取器/解码器 -- MySQL 隐藏的认证凭证登录路径文件
特性
-
简单易用!
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'];
参考
版权
版权 (c) 2023 Anthon Pang。详见 LICENSE。
贡献者
- Anthon Pang robocoder