API referenceSections

PHPApp

PHPApp object
  • recipe string required
    Allowed values: "" "laravel" "symfony" "composer"
  • doc_root string required

    Subfolder IIS serves: public for Laravel and Symfony

  • writable array<string> required
  • commands array<string> required

    Steps this recipe may run

  • recipe_commands map<string, array<string>> required

    Steps each recipe may run, so a recipe being chosen offers its own before it is saved

  • after_deploy array<string> required
  • scheduler boolean required
  • env_allowed boolean required
  • recipe_job PHPAppJob | null required
  • last_run PHPAppJob | null required
  • env_job PHPAppJob | null required

Used by

GET/api/v1/tenants/{tid}/sites/{id}/php-appThe site's PHP application recipe (Laravel, Symfony, Composer app) and its last jobs (ADR 0099)
PUT/api/v1/tenants/{tid}/sites/{id}/php-appChoose a recipe (empty removes it), the steps run after a Git deploy, and Laravel's scheduler
POST/api/v1/tenants/{tid}/sites/{id}/php-app/run 202Run steps as the site, in order, stopping at the first failure; composer:install or the recipe's allowed commands