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

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

藏色散人
Release: 2021-06-30 09:00:50
forward
2442 people have browsed it

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
Copy after login

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 \
Copy after login

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!

Related labels:
source:learnku.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template