A lot of PHP apps require extensions such as gd or exif.

The php buildpack uses composer to manage extensions/packages. In order to add extension such as gd. Add the following composer.json file

{
    "require": {
        "ext-gd": "*"
    }
}

For extensions like exif and gd just need to prefix it with ext. That's it!