to connect yii2 with database apache cassandra

i want to know haw to connect my yii2 project to my database server apache cassandra. when i use yii2-cassandra-cql,i have this erro.(see error.png).

that is the components of my main-local file.





<?php

return [

    'components' => array(

        /*'db' => [

            'class' => 'yii\db\Connection',

            'dsn' => 'mysql:host=localhost;dbname=yii2advanced',

            'username' => 'root',

            'password' => '',

            'charset' => 'utf8',

        ],

        'mailer' => [

            'class' => 'yii\swiftmailer\Mailer',

            'viewPath' => '@common/mail',

            // send all mails to a file by default. You have to set

            // 'useFileTransport' to false and configure a transport

            // for the mailer to send real emails.

            'useFileTransport' => true,

        ],*/

        'cassandra' => array(

            'class' => 'beliy\cassandra\Connection',

            'keyspace' => 'Systemecomptable',

            'servers' => array('127.0.0.1:9042'),

        ),


    )

];


// my test in controller


public function actionSignup()

    {

//

        $cass = Yii::$app->cassandra;

        $cql = 'SELECT * FROM plancomptable_by_entreprise WHERE id_entr=967503a9-d6c8-4987-b326-f39f90e78a9b';

        $query_result = $cass->cql3Query($cql);

        $rows = $cass->cqlGetRows($query_result);


//

        $model = new SignupForm();

        if ($model->load(Yii::$app->request->post())) {

            if ($user = $model->signup()) {

                if (Yii::$app->getUser()->login($user)) {

                    return $this->goHome();

                }

            }

        }


        return $this->render('signup', [

            'model' => $model,

        ]);

    }

thank you

I would suggest you use the ext provided by the datastax folks, someone asked this questions some time ago I created a gist with an example based on datastax/php-driver here is link