From 4a0478c07f2331fd99e0b5d99d1f5f0f1a8e494f Mon Sep 17 00:00:00 2001 From: Mischa Braam Date: Sun, 11 Feb 2024 11:09:50 +0100 Subject: [PATCH] Added imagick php extension --- README.MD | 2 +- cli/ValetPlus/PhpExtension.php | 20 +++++++++++++++++--- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/README.MD b/README.MD index 1c08ff33..973d4a0a 100644 --- a/README.MD +++ b/README.MD @@ -48,7 +48,7 @@ should see this domain responding on `127.0.0.1`. Here are a few key differences compared to the original Valet: - Nginx config optimization -- PHP extensions (~~mcrypt~~, ~~intl~~, ~~opcache~~, yaml, apcu) +- PHP extensions (~~mcrypt~~, ~~intl~~, ~~opcache~~, yaml, apcu, imagick) - MySQL (mysql@5.7, mysql@8.0, mysql@8.1, mariadb) - DB commands (list, create, drop, reset, (re)import, export, ~~open~~) - Mailhog (on/off mode) diff --git a/cli/ValetPlus/PhpExtension.php b/cli/ValetPlus/PhpExtension.php index 14e0b49f..9060541e 100644 --- a/cli/ValetPlus/PhpExtension.php +++ b/cli/ValetPlus/PhpExtension.php @@ -26,6 +26,8 @@ class PhpExtension public const YAML_EXTENSION = 'yaml'; /** @var string */ public const DATASTRUCTURE_EXTENSION = 'ds'; + /** @var string */ + public const IMAGICK_EXTENSION = 'imagick'; protected const PHP_EXTENSIONS = [ self::XDEBUG_EXTENSION => [ @@ -35,7 +37,10 @@ class PhpExtension ] ], self::APCU_EXTENSION => [ - 'default' => true + 'default' => true, + 'ini_files' => [ + '20-apcu' + ] ], self::MEMCACHE_EXTENSION => [ 'default' => false, @@ -50,11 +55,20 @@ class PhpExtension 'default' => true, 'brew_dependency' => 'libyaml', 'ini_files' => [ - '20-apcu' + '20-yaml' ] ], self::DATASTRUCTURE_EXTENSION => [ - 'default' => true + 'default' => true, + 'ini_files' => [ + '20-ds.ini' + ] + ], + self::IMAGICK_EXTENSION => [ + 'default' => true, + 'ini_files' => [ + '20-imagick.ini' + ] ], ];