Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

Commit 4a0478c

Browse files
author
Mischa Braam
committed
Added imagick php extension
1 parent fcd8eb4 commit 4a0478c

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

README.MD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ should see this domain responding on `127.0.0.1`.
4848
Here are a few key differences compared to the original Valet:
4949

5050
- Nginx config optimization
51-
- PHP extensions (~~mcrypt~~, ~~intl~~, ~~opcache~~, yaml, apcu)
51+
- PHP extensions (~~mcrypt~~, ~~intl~~, ~~opcache~~, yaml, apcu, imagick)
5252
- MySQL (mysql@5.7, mysql@8.0, mysql@8.1, mariadb)
5353
- DB commands (list, create, drop, reset, (re)import, export, ~~open~~)
5454
- Mailhog (on/off mode)

cli/ValetPlus/PhpExtension.php

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ class PhpExtension
2626
public const YAML_EXTENSION = 'yaml';
2727
/** @var string */
2828
public const DATASTRUCTURE_EXTENSION = 'ds';
29+
/** @var string */
30+
public const IMAGICK_EXTENSION = 'imagick';
2931

3032
protected const PHP_EXTENSIONS = [
3133
self::XDEBUG_EXTENSION => [
@@ -35,7 +37,10 @@ class PhpExtension
3537
]
3638
],
3739
self::APCU_EXTENSION => [
38-
'default' => true
40+
'default' => true,
41+
'ini_files' => [
42+
'20-apcu'
43+
]
3944
],
4045
self::MEMCACHE_EXTENSION => [
4146
'default' => false,
@@ -50,11 +55,20 @@ class PhpExtension
5055
'default' => true,
5156
'brew_dependency' => 'libyaml',
5257
'ini_files' => [
53-
'20-apcu'
58+
'20-yaml'
5459
]
5560
],
5661
self::DATASTRUCTURE_EXTENSION => [
57-
'default' => true
62+
'default' => true,
63+
'ini_files' => [
64+
'20-ds.ini'
65+
]
66+
],
67+
self::IMAGICK_EXTENSION => [
68+
'default' => true,
69+
'ini_files' => [
70+
'20-imagick.ini'
71+
]
5872
],
5973
];
6074

0 commit comments

Comments
 (0)