Search code examples
phpherokuimagickheroku-api

Add php5-imagick to Heroku php buildpack


Someone can show me how to customize the official buildpack heroku/php in order to add php5-imagick extension?

Thanks


Solution

  • You do not need to customize the buildpack. The extension is already supported.

    Just follow the instructions in the docs, https://devcenter.heroku.com/articles/php-support#extensions

    Your composer.json needs ext-imagick in the require section; the next deploy will then have the extension enabled automatically.