Heroku Postgres in PHP: Quick Start
"Heroku Postgres is a managed SQL database service provided directly by Heroku ( https://devcenter.heroku.com/articles/heroku-postgresql ). In this post, I am going to use Heroku Postgres in PHP. create app % mkdir heroku && cd heroku % touch index.php % git init % git add . % git commit -am 'init' % heroku create % heroku apps add database Confirm "No add-ons" yet. % heroku addons Add database as a free plan. % heroku addons:create heroku-postgresql:hobby-dev % heroku pg:info === DATABASE_URL Plan: Hobby-dev Status: Available Connections: 0/20 PG Version: 13.2 Created: 2021-05-08 00:45 UTC Data Size: 7.9 MB Tables: 0 Rows: ...