This is the official Heroku buildpack for PHP applications with adjustments used by Confection
It uses Composer for dependency management, supports PHP or HHVM (experimental) as runtimes, and offers a choice of Apache2 or Nginx web servers.
- On your
app.json
you will need to add this repo git address as a buildpack - You may need to edit the file
bin/snowflake.sh
and adjust the extension folder address of your setup.phpinfo()
orphp -i | grep 'PHP API'
will tell you the correct folder name, which is the PHP API version. The current version is set for PHP 8.0.
- Add the original repo as "upstream":
git remote add upstream https://github.com/heroku/heroku-buildpack-php.git
- Fetch all branches of remote upstream
git fetch upstream
- Rewrite your master with latest tag version
- Squash master from upstream into current one
git reset --soft upstream/main
git commit -m "new version"
git push -f
- Sync changes to retrieve the new data. Check if bin/snowflake.sh is in place. If PHP version changed, need to change the extension name dir to reflect the PHP API version. You may retrieve the PHP API version with the command
php -i | grep 'PHP API'
- Add the following code to
bin/compile
just above the rowstatus "Preparing runtime environment..."
# snowflake source $bp_dir/bin/snowflake.sh
- Add the following lines to
conf/php/php.ini
extension=pdo_snowflake.so pdo_snowflake.cacert=cacert.pem
- Update
conf/php/cacert.pem
with content fromhttps://github.com/gisle/mozilla-ca/blob/master/lib/Mozilla/CA/cacert.pem
- Commit and push to main