yii2-pdf icon indicating copy to clipboard operation
yii2-pdf copied to clipboard

How to support php 7.1

Open Cuihongsen opened this issue 7 years ago • 5 comments

How to support php 7.1

Cuihongsen avatar Nov 03 '17 07:11 Cuihongsen

Theoretically, it is already supported. If you are experiencing issues, feel free to report here (if it is related to this library) or report to mpdf repo (in case it is related to mpdf directly)

robregonm avatar Nov 03 '17 15:11 robregonm

No, PHP 7 is not actually supported. It is required to update mpdf first, but then yii2-pdf is not compatible with mpdf v7. To make it compatible one need to change class name from mPDF to Mpdf and Mpdf accepts single input parameter that is actually array of mPDF parameters. See post:

https://harrybailey.com/2018/08/yii-1-php-7-1-yii-pdf-and-mpdf/

I would like to update in a clean way yii2-pdf and mpdf v7. Is there an easy way to do it? Shall I fork yii2-pdf and make it work for mpdf v7?

zoran-grujic avatar Jun 07 '19 21:06 zoran-grujic

Feel free to submit a PR, or to become a contributor :-)

robregonm avatar Jun 10 '19 18:06 robregonm

I am not big git master, but I think I managed to send two pull requests with changes that might do the job. And you can mark it as new version after merge...

zoran-grujic avatar Jun 11 '19 19:06 zoran-grujic

@robregonm i have made a PR for this issue #29

Julian-B90 avatar Aug 02 '19 07:08 Julian-B90