Skip to main content

Requirements

  • PHP 8.2+ installed locally
  • Composer for dependency management
  • Account on Vertra Cloud

Project Structure

Configuration

composer.json

The platform automatically runs composer install. Do not include the vendor folder in the upload.

vertracloud.config

Example: Simple REST API

public/index.php

Deploy

  1. Compress the project into a .zip (folders like node_modules, venv and target are removed automatically) or push it to GitHub.
  2. In the dashboard, click New Project and upload the .zip or paste the repository URL.
  3. In Build, check the runtime (PHP), the main file (public/index.php) and the memory. Start and build commands are under Advanced settings.
  4. Add your environment variables in Environment.
  5. In Network, turn on web publishing so the app gets a *.vertraweb.app address (512 MB of memory or more). The app must listen on port 80.
  6. Review and deploy. Follow the output in the Logs tab.
The full walkthrough is in First deploy.

Available Versions

Notes

  • Dependencies: Use Composer to manage dependencies
  • Environment variables: Access via $_SERVER['...'] or use libraries like vlucas/phpdotenv
  • Logs: Print to stdout/stderr to appear in dashboard logs
  • Sessions: Configure in-memory sessions or with Redis if needed
  • Security: Use header('Content-Type: application/json') for APIs
  • Listen on 0.0.0.0 on port $PORT
Last modified on November 1, 2026