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.
ENTRY

Where public/index.php should be

An entrypoint is the PHP file where the app starts. For web projects it is usually public/index.php. For CLI projects it can be bin/console, app.php, or another file.

Project default value

You can set a default entrypoint in project settings. If a command is run without a file, the service uses it automatically.

php2go report public/index.php
php2go check public/index.php
php2go compile --web --bin app-server public/index.php

Custom directory

If your front controller is not public/index.php, pass the path explicitly or save it in project settings.

php2go check web/index.php
php2go compile --web --bin shop-server web/index.php