Most likely there will be a compatibility issue with the package (mpdf) version and the language(PHP) version After several attempts, the compatibility between Jazm and language(PHP) was discovered as follows.
- mPDF >=7.0 is supported on PHP ^5.6 || ~7.0.0 || ~7.1.0 || ~7.2.0
- PHP 7.3 is supported since mPDF v7.1.7
- PHP 7.4 is supported since mPDF v8.0.4
- PHP 8.0 is supported since mPDF v8.0.10
- PHP 8.1 is supported as of mPDF v8.0.13
If you have trouble installing the package, use the following command
composer require mpdf/mpdf:^version -w
Note: Put the word “version” instead (the version that matches your version)
Good luck everyone......