I wanted to include PHPExcel.php in a testing module. So I put this file and the rest of the lib into: sites/all/libraries/phpexcel/
and I used this in my module:
function mymod_libraries_info() { $libraries['phpexcel'] = array( 'name' => 'PHP Excel', 'version arguments' => array( 'file' => 'PHPExcel.php', // Could be any file with version info 'pattern' => '/Version (d+)/', 'lines' => 5, ), 'files' => array( 'php' => array('PHPExcel.php'), ), ); return $libraries; }
But after a:
$objPHPExcel = new PHPExcel();
I get a:
Fatal error: Class ‘PHPExcel’ not found in sites/all/modules/mymod/mymod.module on line 81
Should be an easy inclusion somewhere? But where and how?
I found a composer.json
as well along with the PHPExcel Lib – should I rather try to install composer_manager and try to get the composer installation working?
Thanks in advance
Sponsored by SupremePR