Using Autoload #3036
-
Hi, Maybe I am dumb, but I don't manage to fix this Autoload story. I downloaded PhpSpreadsheet and inserted it in my project, but I don't know how to install correctly an autoload. Previously I was using PhpExcel and had no issue with it, but it does not work anymore (maybe due to PHP 7?). I read the doc about composer and understood nothing... I am not a Linux man. My platform:
If someone can help me, it will be wonderful. Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
For PHPExcel, you had a statement near the start of your script like (your directory may vary): require __DIR__ . '/Classes/PHPExcel.php'; For PhpSpreadsheet, you need to use the following instead: require __DIR__ . '/vendor/autoload.php'; |
Beta Was this translation helpful? Give feedback.
For PHPExcel, you had a statement near the start of your script like (your directory may vary):
For PhpSpreadsheet, you need to use the following instead: