Documentation

php2go 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.
CLI

Allowed terminal commands

The terminal is intentionally restricted. It does not run arbitrary shell, composer scripts, or PHP code from the archive. Every command passes whitelist and plan limits.

Why arbitrary commands are blocked

The service accepts third-party ZIP archives, so shell commands, network installs, and arbitrary execution are blocked to protect users, workers, and the server.