John Davidson

php - trying to install mpdf using composer, but getting version ^6.1?

0 comments
Message:


I am trying to install mpdf using composer, but when I try command_prompt "composer require mpdf/mpdf" in my project folder, I get version 6.1 installed instead of 7.x. Any suggestions?


Windows 11
XAMPP v3.3.0


Any help appreciated!


command prompt screen shot



My Answer:
composer require mpdf/mpdf, I am getting version ^6.1 instead of the latest version.

To install the latest version of mpdf using composer, you can specify the version explicitly by running the following command:

composer require mpdf/mpdf:^8.0

This will install the latest version of mpdf (version 8.0) instead of version 6.1.

Rate this post

4 of 5 based on 9654 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us