Using Media Library Manager with Imagick and Filament 3 in Laravel

I'm working on a Laravel project and I'm looking to integrate the Media Library Manager, which requires the PHP extension imagick. However, I'm facing a dilemma: imagick seems to be only compatible with PHP up to version 8.1, while Filament 3 requires PHP version 8.1.2. How can I configure my environment to use both imagick and Filament 3, given this PHP version constraint? Is there a way to keep imagick functional while taking advantage of Filament 3 features in Laravel? Any help or suggestion would be greatly appreciated, thank you!
4 Replies
Mansoor Khan
Mansoor Khan8mo ago
Filament requires 8.1+, not exactly 8.1.2 i guess? So 8.1 should work. Do you run into any issues like composer install?
LeChatSoeur
LeChatSoeurOP8mo ago
I'm working on a Laravel project that requires the use of Filament 3.2.34 and the imagick PHP extension. Initially, my setup was running on PHP 8.3.3, which worked well with Filament. However, upon attempting to install imagick, I had to downgrade to PHP 8.1.0, as imagick doesn't support PHP 8.1.2+. After downgrading PHP to 8.1.0 for imagick compatibility, Filament started showing discontent with a specific dependency issue. I'm encountering an error stating league/csv 9.11.0 requires php ^8.1.2. The catch-22 is that PHP 8.1.2 doesn't play well with imagick, which leaves me in a bit of a bind. How can I reconcile these version discrepancies to use both imagick and Filament 3.2.34 in my project? Are there any known workarounds or configurations that allow imagick to function with PHP versions beyond 8.1.0, specifically accommodating the ^8.1.2 requirement from league/csv without breaking Filament? Any guidance, suggestions, or insights from those who've navigated similar dependency conflicts would be greatly appreciated. Thank you!
Mansoor Khan
Mansoor Khan8mo ago
Found this while trying to look imagick support for php8.3 https://orkhan.dev/2024/02/07/using-imagick-with-php-83-on-docker/
Orkhan’s Blog
Using Imagick extension with PHP 8.3 on Docker
If you use the imagick extension on PHP 8.2 or earlier, it is quite straightforward to install on Docker.
LeChatSoeur
LeChatSoeurOP8mo ago
Ok, thank you, this is beyond my current skill level. I'll have to look for another solution. Thanks again.
Want results from more Discord servers?
Add your server