Documentation menu

Deploy any PHP app on Light Cloud - the runtime behind Laravel, Symfony, and WordPress, run as a container on port 8080.

Deploy PHP

Any PHP app runs as a container on the PHP runtime - the machinery behind the Laravel, Symfony, and WordPress guides, available to plain PHP too. Detection reads your composer.json (or plain .php entry points); the default port is 8080.

How it runs#

The generated image serves your app on the routed port with a production PHP setup - Composer dependencies installed during the build. A repo with its own Dockerfile (FrankenPHP, custom FPM tuning) is used as written.

Configuration and database#

Read environment variables with getenv()/$_ENV at request time - they are present for every request, per environment. Database credentials come from the Credentials tab as a URL or discrete values, whichever your app expects.

The stateless rule#

Instances come and go with scaling - local files don't survive. Sessions belong in the database or cookies, uploads on object storage via your app's storage layer, caches somewhere shared. Frameworks handle this with a config switch; plain PHP needs it kept in mind.