Modern applications using composer for dependencies give you this error information for free by virtue of the fact that `composer install` will fail. Most (all?) PaaS solutions take this into account and install those extensions. I know heroku does, as dokku uses the heroku buildpack :)