Ray Ray - 5 months ago 75
PHP Question

How would I use PHPExcel library in Fat-free framework?

I have a project that requires PHPExcel library(https://github.com/PHPOffice/PHPExcel) to be used with the application that I am porting to the Fat-free framework.

How would I use/reference this packages. thanks !


I recommend you use composer. That way you can just call the specific class, since autoload.php will automatically load every class you require.


require 'vendor/autoload.php';

$f3 = Base::instance();

$f3->route('GET /', function() use($f3) {
    $excel = new PHPExcel();