#PHP

Articles

Resources

Tips

Using Imagick extension with PHP 8.3 on Lando

The latest imagick release in pecl repositories is not yet compatible with 8.3.

The workaround is to compile it manually by cloning the repo and running make commands inside the docker container.

Here's how to do it in lando:

.lando.yml

services:
  appserver:
    build_as_root:
      - /app/scripts/imagick.sh

scripts/imagick.sh