brew tap homebrew/services

brew install homebrew/php/php71 --with-postgresql => brew options php71

brew install composer

brew install heroku

heroku login
git clone https://github.com/heroku/php-getting-started.git
cd php-getting-started.git
heroku create
git push heroku master
heroku open
heroku logs --tail

https://devcenter.heroku.com/articles/getting-started-with-php#define-a-procfile