Download the PHP package devinterx/heroku-buildpack-php without Composer
On this page you can find all versions of the php package devinterx/heroku-buildpack-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download devinterx/heroku-buildpack-php
More information about devinterx/heroku-buildpack-php
Files in devinterx/heroku-buildpack-php
Package heroku-buildpack-php
Short Description Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku
License MIT
Homepage http://github.com/devinterx/heroku-buildpack-php
Informations about the package heroku-buildpack-php
Heroku buildpack: PHP
This is a Heroku buildpack for PHP applications.
It uses Composer for dependency management, supports PHP or HHVM (experimental) as runtimes, and offers a choice of Apache2 or Nginx web servers.
Usage
You'll need to use at least an empty composer.json
in your application.
heroku config:set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-php
echo '{}' > composer.json
git add .
git commit -am "add composer.json for PHP app detection"
Please refer to Dev Center for further usage instructions.
Development
Compiling Binaries
The folder support/build
contains Bob build scripts for all binaries and dependencies.
To get started with it, create a Python app (Bob is a Python application) on Heroku inside a clone of this repository, and set your S3 config vars:
Then, shell into an instance and run a build by giving the name of the formula inside support/build
:
If this works, run bob deploy
instead of bob build
to have the result uploaded to S3 for you.
To speed things up drastically, it'll usually be a good idea to heroku run bash --size PX
instead.
If the dependencies are not yet deployed, you can do so by e.g. running bob deploy libraries/zlib
.
Hacking
To work on this buildpack, fork it on Github. You can then use Anvil with a local buildpack to easily iterate on changes without pushing each time.
Alternatively, you may push changes to your fork (ideally in a branch if you'd like to submit pull requests), then create a test app with heroku create --buildpack <your-github-url#branch>
and push to it.