How to connect to Oracle DB Yii2?

Good day!
I use Yii2 for the project. Make connect Oracle DB via file web.php. Components to prescribe:
'dbO' => [
 'class' => 'yii\db\Connection',
 'dsn'=>'oci:dbname=//{{MY HOST}};charset=AL32UTF8;',
'username'=>'username',
'password'=>'password',
 ],

Receive error: could not find driver
Googled 2 solutions:
1) PDO_OCI
2) third-Party class that simulates a PDO for Oracle
However, I would like to know how to connect. Maybe there's some "official" method, which is supported by the Yii developers?
June 14th 19 at 18:05
1 answer
June 14th 19 at 18:07

Find more questions by tags PHPYii