Home>Article>PHP Framework> How to install php-imagick in laravel docker sail php8.0

How to install php-imagick in laravel docker sail php8.0

藏色散人
藏色散人 forward
2021-06-28 15:35:45 2267browse

Today we need to develop the need to convert the url connection into a QR code~

I decided to use simple-qrcode to do it!

composer require simplesoftwareio/simple-qrcode

But when the method of generating QR code is actually called, it prompts that the imagick php extension is missing

Then install the extension

The php7 version is easier to install,

So here we only talk about the php8 version

Change the file /docker/8.0/Dockerfile and add the red box content
laravel docker sail php8.0 安装 php-imagick
This is the text version

ghostscript imagemagick autoconf php-pear libmagickwand-dev php-imagick \

For more laravel related technical articles, please visit thelaravelcolumn!

The above is the detailed content of How to install php-imagick in laravel docker sail php8.0. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:learnku.com. If there is any infringement, please contact admin@php.cn delete