Open sdobke opened 5 years ago
Is there any way to avoid anoying composer?
The first example should work. Could you provide a minimal reproduction of your issue formatted in a code block? I can't understand your aversion of composer though. It‘s a great tool with a low learning curve which eases development a lot.
Thanks a lot for your answer but I needed to make it work and switched to mPDF. Will try it again in the future and let you know. Sergio
El vie., 13 sept. 2019 a las 8:09, Sebastian Clausen (< notifications@github.com>) escribió:
The first example should work. Could you provide a minimal reproduction of your issue formatted in a code block? I can't understand your aversion of composer though. It‘s a great tool with a low learning curve which eases development a lot.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/spipu/html2pdf/issues/498?email_source=notifications&email_token=AHAM3FF5DHDXXA7DJLVJF2LQJNYGHA5CNFSM4IJYRP32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6UWVNA#issuecomment-531196596, or mute the thread https://github.com/notifications/unsubscribe-auth/AHAM3FACUI7QFNKDFAJEWA3QJNYGHANCNFSM4IJYRP3Q .
I first read 4 similar cases. None of those helped me.
Installed on Windows 10 using XAMPP with composer: composer require spipu/html2pdf then: require_once(DIR .'/vendor/autoload.php'); use Spipu\Html2Pdf\Html2Pdf;
Also tried: require_once(DIR .'/vendor/autoload.php'); require_once(DIR .'/vendor/spipu/html2pdf/src/Html2Pdf.php');
And require_once('/vendor/autoload.php'); require_once(.'/vendor/spipu/html2pdf/src/Html2Pdf.php');
Tried on PHP 7.1 and 5.6.31 Always gives me: Fatal error: Class 'Html2Pdf' not found
thanks