reyzeal / heroku-buildpack-php

The official PHP buildpack for Heroku.

Home Page:https://devcenter.heroku.com/categories/php

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Heroku buildpack: PHP + APFD

fork from Official Buildpack PHP Heroku https://github.com/heroku/heroku-buildpack-php php

Laravel or PHP in general cannot fully support all of Restful methods such as PUT, PATCH and DELETE. It needs additional library to parse the body from those methods. I've added PECL library named APFD to solve this problem.

Usage

You'll need to use at least an empty composer.json in your application.

$ echo '{}' > composer.json
$ git add composer.json
$ git commit -m "add composer.json for PHP app detection"

If you also have files from other frameworks or languages that could trigger another buildpack to detect your application as one of its own, e.g. a package.json which might cause your code to be detected as a Node.js application even if it is a PHP application, then you need to manually set your application to use this buildpack:

$ heroku buildpacks:set https://github.com/reyzeal/heroku-buildpack-php

About

The official PHP buildpack for Heroku.

https://devcenter.heroku.com/categories/php

License:MIT License


Languages

Language:Shell 81.2%Language:PHP 9.1%Language:Ruby 9.0%Language:Dockerfile 0.4%Language:Python 0.3%