Skip to content

Commit

Permalink
Added imagick php extension
Browse files Browse the repository at this point in the history
  • Loading branch information
mischabraam committed Feb 11, 2024
1 parent fcd8eb4 commit 4a0478c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
20 changes: 17 additions & 3 deletions cli/ValetPlus/PhpExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 => [
Expand All @@ -35,7 +37,10 @@ class PhpExtension
]
],
self::APCU_EXTENSION => [
'default' => true
'default' => true,
'ini_files' => [
'20-apcu'
]
],
self::MEMCACHE_EXTENSION => [
'default' => false,
Expand All @@ -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'
]
],
];

Expand Down

0 comments on commit 4a0478c

Please sign in to comment.