Skip to content
homeport

PHP

Plain PHP, deployed from the repo, with no server to look after

Push a folder with an index.php and it’s a PHP site. No framework needed, no Apache or nginx to configure, no server to patch. It runs on PHP 8.5, and Laravel gets even more.

Frameworks

What homeport reads

index.php or public/index.php
A PHP site. With public/index.php, public/ is what visitors see; otherwise your repo’s own folder.
composer.json + composer.lock
Your platform requirements are checked against the lockfile, then composer install runs without dev packages. A composer.json without its lockfile stops the build, saying to commit it.
require.php in composer.json
Must allow PHP 8.5, or the build stops and says so.
php.ini
Your own settings, applied after homeport’s, so yours win. It is never served to visitors.
package.json
When it has a build script, your front-end assets are built with Bun first.

What you get

  • PHP 8.5 with the standard extensions, nothing to install or compile
  • composer.json, vendor/, .env, php.ini and other dotfiles are never served to visitors
  • Errors go to your logs, never to a visitor’s screen
  • Your visitor’s real IP and https in $_SERVER, with no proxy settings to add
  • Postgres in one click, with DATABASE_URL set for you
  • You pay only while it’s in use, and nothing while nobody is using it
  • HTTPS on a homeport.run address, and your own domain on paid plans
  • Environment variables set in the dashboard, exportable as .env

When you need more

A release command (a migration, say) and background workers are set in the dashboard under Settings → Build settings, or in an optional homeport.yaml. Each is arguments to FrankenPHP’s php-cli:

release: php-cli migrate.php
processes:
  worker: php-cli worker.php