p2g php2go Cloud
loginLogin rocket_launchStart
Documentation

php2go Cloud documentation

A practical user guide: prepare a ZIP, choose an entrypoint, run allowed commands, download the artifact, and understand common compiler errors.

Fast path to the first build
  1. Pack the project into a ZIP without secrets or junk files.
  2. Make sure the entrypoint exists, usually public/index.php.
  3. Run report/check/deps before compile.
  4. Download the artifact and run the binary using README_RUN.
RUN

How to run the binary

After a successful compile, download the artifact ZIP. It contains the binary, manifest, logs, and run instructions. On Linux, usually unzip it and grant execute permission.

CLI or simple run

unzip php2go-build-123.zip -d build
cd build
chmod +x app-server
./app-server

Web server

APP_ENV=production APP_PORT=8080 ./app-server
curl http://127.0.0.1:8080/healthz
Nginx in front of the binary

In production, run the binary on a localhost port and let Nginx proxy HTTP requests while serving static files directly.