Vapor: Adding Imagick As Separate Lambda Layer

Starting today, you can add Imagick support to your projects by importing an external Lambda layer. This change decreases the size of the default Vapor runtime layer and allows customers that don't use Imagick to upload larger applications without worrying about AWS Lambda application size limits.

If you wish to use Imagick in your project, add a /php/conf.d/php.ini file in your project root that contains the following configuration:

1extension=/opt/bref-extra/imagick.so

Next, include the PHP runtime layer as well as the Imagick layer in your vapor.yml configuration file:

1environments:
2 staging:
3 layers:
4 - vapor:php-7.4
5 - vapor:php-7.4:imagick

Once these configuration changes have been made, you may deploy your project.

Keep reading

Product January 9, 2026

Laravel December Product Releases

See what you can do with our latest product releases: set up billing alerts in Laravel Cloud, and ship faster with framework, Forge, and Nightwatch updates.

Laravel Team