Ray Ray - 1 year ago 175
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 !

Answer Source

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();

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download