Template4 min read
PHP Deployment Template for OpenClaw
PHP template for OpenClaw. FastCGI mode with Nginx, Laravel support, and excellent hosting compatibility.
A PHP template for OpenClaw deployments. PHP has the broadest hosting compatibility and powers many production systems.
Why PHP for OpenClaw
- Maximum hosting compatibility: Every shared host supports PHP
- Mature ecosystem: Excellent Telegram SDKs
- Laravel: If you're already in the Laravel ecosystem
Quick Start
npx degit openclaw/php-template my-php-bot
cd my-php-bot
composer install
# Edit openclaw.json
fly launch && fly deploy
With Laravel
The template includes a Laravel variant with:
- Telegram Bot SDK for Laravel
- QUEUE-driven message processing
- Horizon for monitoring
Health Check
<?php
header('Content-Type: application/json');
echo json_encode(['status' => 'ok']);