|-原 Yii2用composer安装kartik-v/yii2-mpdf时报错,成功解决后,再让其支持中文。
kartik-v/yii2-mpdf好像已经没有再维护了 202205
composer安装kartik-v/yii2-mpdf时报错,这里记录下
>composer require kartik-v/yii2-mpdf "dev-master"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Failed to decode response: zlib_decode(): data error
Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubles
hooting.md#degraded-mode for more info
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for kartik-v/yii2-mpdf dev-master -> satisfiable by k
artik-v/yii2-mpdf[dev-master].
- Conclusion: remove mpdf/mpdf 6.1.x-dev
- Conclusion: don't install mpdf/mpdf 6.1.x-dev
- kartik-v/yii2-mpdf dev-master requires mpdf/mpdf ~7.0 -> satisfiable by mp
df/mpdf[7.0.2, 7.0.x-dev, v7.0.0, v7.0.0-RC1, v7.0.0-RC2, v7.0.0-RC3, v7.0.0-RC4...