tholu/php-packer

Fatal error: Class 'Packer' not found

Shababsoft opened this issue · 6 comments

I have used composer to download the package but when I am getting the below error message when trying to user the packer.

Fatal error: Class 'Packer' not found in test.php

Php code:
require_once 'vendor/autoload.php'; $myPacker = new Packer($jquery, 'Normal', true, false, true);

tholu commented

This seems weird. Are you sure that composer installed the package correctly? Is the package in your vendor folder?

Yes, it is in the vendor folder but I couldn't find the Packer class in the autoload composer classes map file.

tholu commented

Seems more like a composer issue to me.

"psr-4": {
"Mpdf": "src/"
},

I was thinking it may be due to "/" at the end of src

tholu commented

I updated the README, this should work:

$packer = new Tholu\Packer\Packer($js, 'Normal', true, false, true);