Skip to content

🔧 Additional PHP extensions for Heroku PHP Buildpack

License

Notifications You must be signed in to change notification settings

dogchef-be/heroku-custom-php-extensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

heroku-custom-php-extensions

Additional PHP extensions for Heroku PHP Buildpack

Extensions

  • Lpsolve: Mixed Integer Linear Programming (MILP) solver

Setup

  1. Configure the repository via Heroku CLI (replace APP_NAME):

heroku config:set --app=APP_NAME HEROKU_PHP_PLATFORM_REPOSITORIES="https://dogchef-be.github.io/heroku-custom-php-extensions/"

  1. Update project's composer.json:
"require": {
  ...
  "ext-lpsolve": "*",
  ...
}
  1. Add heroku-buildpack-apt before heroku/php (Heroku > App X > Settings > Buildpacks).

  2. Add Aptfile to project's root:

# heroku-buildpack-apt
lp-solve

License

See the LICENSE file for license rights and limitations (MIT).