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
Plain PHP
An index.php at the top of your repo or in public/. A visit to /about.php runs about.php, a folder’s index.php answers for it, and CSS and images are served as they are.
Front controller
A path that isn’t a file goes to your index.php, so a router like Slim or your own routes.php works as it does under Apache.
With Composer
A composer.json and its composer.lock: your dependencies are installed without dev packages, exactly as locked.
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