2017 © Pedro Peláez
 

library heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

image

devinterx/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  • Friday, February 20, 2015
  • by devinterx
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • Shell
  • 0 Dependents
  • 0 Suggesters
  • 1422 Forks
  • 0 Open issues
  • 59 Versions
  • 0 % Grown

The README.md

Heroku buildpack: PHP

This is a Heroku buildpack for PHP applications., (*1)

It uses Composer for dependency management, supports PHP or HHVM (experimental) as runtimes, and offers a choice of Apache2 or Nginx web servers., (*2)

Usage

You'll need to use at least an empty composer.json in your application., (*3)

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., (*4)

Development

Compiling Binaries

The folder support/build contains Bob build scripts for all binaries and dependencies., (*5)

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:, (*6)

$ heroku create --buildpack https://github.com/heroku/heroku-buildpack-python
$ heroku ps:scale web=0
$ heroku config:set WORKSPACE_DIR=/app/support/build
$ heroku config:set AWS_ACCESS_KEY_ID=<your_aws_key>
$ heroku config:set AWS_SECRET_ACCESS_KEY=<your_aws_secret>
$ heroku config:set S3_BUCKET=<your_s3_bucket_name>
$ heroku config:set S3_PREFIX=<optional_s3_subfolder_to_upload_to>

Then, shell into an instance and run a build by giving the name of the formula inside support/build:, (*7)

$ heroku run bash
Running `bash` attached to terminal... up, run.6880
~ $ bob build php-5.5.11RC1

Fetching dependencies... found 2:
  - libraries/zlib
  - libraries/libmemcached
Building formula php-5.5.11RC1:
    === Building PHP
    Fetching PHP v5.5.11RC1 source...
    Compiling PHP v5.5.11RC1...

If this works, run bob deploy instead of bob build to have the result uploaded to S3 for you., (*8)

To speed things up drastically, it'll usually be a good idea to heroku run bash --size PX instead., (*9)

If the dependencies are not yet deployed, you can do so by e.g. running bob deploy libraries/zlib., (*10)

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., (*11)

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., (*12)

The Versions

20/02 2015

dev-master

9999999-dev http://github.com/devinterx/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

20/02 2015

v65

65.0.0.0 http://github.com/devinterx/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

19/02 2015

dev-develop

dev-develop http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

19/02 2015

v64

64.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

11/02 2015

v63

63.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

04/02 2015

v62

62.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

04/02 2015

v61

61.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

04/02 2015

v60

60.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

04/02 2015

dev-autotune

dev-autotune http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

30/01 2015

v59

59.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

27/01 2015

v58

58.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

20/01 2015

v57

57.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

13/01 2015

v56

56.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

07/01 2015

v55

55.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

05/01 2015

v54

54.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

26/12 2014

v53

53.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

26/12 2014

v52

52.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

18/12 2014

v51

51.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

11/12 2014

v50

50.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

28/11 2014

v49

49.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

27/11 2014

dev-refactor_special_exts

dev-refactor_special_exts http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

26/11 2014

v48

48.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

14/11 2014

v47

47.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

02/11 2014

v46

46.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

18/10 2014

v45

45.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

03/10 2014

v44

44.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

11/09 2014

v43

43.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

11/09 2014

v42

42.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

10/09 2014

v41

41.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

08/09 2014

v40

40.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

22/08 2014

v39

39.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

14/08 2014

v37

37.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

13/08 2014

v36

36.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

13/08 2014

v35

35.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

12/08 2014

v34

34.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

07/08 2014

v33

33.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

07/08 2014

v32

32.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

06/08 2014

v31

31.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

05/08 2014

v30

30.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

24/07 2014

v29

29.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

24/07 2014

v28

28.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

23/07 2014

v27

27.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

16/07 2014

v26

26.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

15/07 2014

v25

25.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

09/07 2014

v24

24.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

09/07 2014

v23

23.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

09/07 2014

v22

22.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

28/06 2014

v21

21.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

17/06 2014

v20

20.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

11/06 2014

dev-hhvm

dev-hhvm

  Sources   Download

11/06 2014

dev-beta

dev-beta http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

06/06 2014

v19

19.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

21/05 2014

v18

18.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

21/05 2014

v17

17.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

21/05 2014

v16

16.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

19/05 2014

v15

15.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

08/05 2014

v14

14.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

06/05 2014

v13

13.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman

29/04 2014

v12

12.0.0.0 http://github.com/heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP/HHVM and Apache2/Nginx as on Heroku

  Sources   Download

MIT

by David Zuelke

php hhvm apache apache2 nginx heroku foreman