Neon
Published
Updated
🟢
Only green here.
Neon runs serverless Postgres on AWS, with branching and autoscaling. A fortrabbit app connects with the pdo_pgsql driver, which is always on, and the credentials as ENV vars.
Neon runs open source Postgres with separate storage and compute, branching and autoscaling.
PHP and Postgres
fortrabbit offers MySQL, not Postgres, but PHP connects to an external Postgres: the pgsql and pdo_pgsql extensions are always on.
Laravel example
Laravel supports Postgres. Set the connection in the ENV vars:
DB_CONNECTION=pgsql
DB_HOST=ep-random-name-123456.eu-central-1.aws.neon.tech
DB_PORT=5432
DB_DATABASE=neondb
DB_USERNAME=user
DB_PASSWORD=password
Region
Neon runs on AWS. Create the database in the AWS region of the app, see database hosting.