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
This is the text version
ghostscript imagemagick autoconf php-pear libmagickwand-dev php-imagick \
For more laravel related technical articles, please visit the laravel column!
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!