I am developing a simple php application which needs connecting to Database This is part of the code that creates connection to db
private $mysqli;
public function __construct()
{
$this->mysqli = new \mysqli("localhost", "root", "password", "mydb");
}
My question: how to avoid hard-coded credentials, The client required me to avoid this?
where should I put these setting?