Yexcel Extension


I’m trying to get the Yexcel extension installed and keep coming up with the following error:

include(Yexcel.php): failed to open stream: No such file or directory 

I have followed the setup instructions (which seem extremely simple – link to the extension page) and checked into loading extensions from the Yii wiki. Doesn’t seem like I’ve missed anything.

Files for the extension were placed under the extensions directory:

– extensions (dir)

---- yexcel

------ Classes (dir)

------ Yexcel.php

Here is the components section from my main config:



			// enable cookie-based authentication




                'yexcel' => array(

                    'class' => 'ext.yexcel.Yexcel'




			'connectionString' => 'mysql:host=localhost;dbname=********',

			'emulatePrepare' => true,

			'username' => 'root',

			'password' => '********',

			'charset' => 'utf8',



			// use 'site/error' action to display errors








					'levels'=>'error, warning',





And here is where the extension is being called (from a controller):

	public function actionImport()


                $file_path = dirname(__FILE__) . '/files/sample.xls';


                $data = Yii::app()->yexcel->readActiveSheet($file_path);                           






Any thoughts?


some problem but this is my error

include(PHPExcel_Shared_ZipStreamWrapper.php) [<a href=‘function.include’>function.include</a>]: failed to open stream: No such file or directory

it seems the PHPExcel AutoLoader doesn’t work…

I had same problem

did you check directory permissions ?

can you provide more information about your problem ?

I really have no problem when following instruction provided in the extension’s page.

In Yexcel.php, change




Look here :

In file ‘yexcel/Yexcel.php’ change





Then in file: ‘yexel/Classes/PHPExcel/Autoloader.php’ starting in line 27 (just after initial comments) change




spl_autoload_unregister(array('YiiBase', 'autoload'));


spl_autoload_register(array('YiiBase', 'autoload'));

And enjoy your Excel files in Yii !

Hello, may u tell, can i create excel files from this extension - yexcel, or i can only read excel files?

P.S. sry for this, i don’t know where i can ask this, i hav’t premissions for any move -(