Skip to content

Using Autoload #3036

Answered by oleibman
TonioIncredible asked this question in Q&A
Aug 28, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

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';

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@TonioIncredible
Comment options

@MarkBaker
Comment options

@TonioIncredible
Comment options

Answer selected by TonioIncredible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants