Your problem is not that you are missing the mysqli extension.
If you are doing something like this:
namespace Listener;
class Foo
{
public function bar() {
$conn = new mysqli(...);
}
}
PHP new mysqli() new \Listener\mysqli(), \Listener. , mysqli() :
$conn = new \mysqli(...);