Cbox Init
Examples
Examples
Practical, production-ready configuration examples for common use cases with PHP applications including Laravel, WordPress, Symfony, and more.
Available Examples
Core Examples
These work with any PHP framework:
- Minimal Setup - Simple PHP-FPM configuration
- Node.js Applications - Next.js, Nuxt, Remix, Express, and other Node servers
- Scheduled Tasks - Cron scheduler for Laravel, Symfony, WordPress
- Kubernetes Deployment - K8s deployment patterns
- Docker Compose - Multi-container orchestration
Framework Examples
Laravel-specific configurations (adapt patterns for Symfony, WordPress, etc.):
- Laravel Complete - Full Laravel stack with Horizon and queues
- Laravel with Monitoring - Laravel + Prometheus + API
Quick Start
Minimal PHP-FPM
Works with any PHP application:
version: "1.0"
global:
shutdown_timeout: 30
log_level: info
processes:
php-fpm:
enabled: true
command: ["php-fpm", "-F", "-R"]
restart: always
PHP with Queue Workers
Example for Laravel (adapt for Symfony Messenger, WordPress, etc.):
version: "1.0"
processes:
php-fpm:
enabled: true
command: ["php-fpm", "-F", "-R"]
nginx:
enabled: true
command: ["nginx", "-g", "daemon off;"]
depends_on: [php-fpm]
# Laravel: php artisan queue:work
# Symfony: php bin/console messenger:consume
# Custom: php worker.php
queue-worker:
enabled: true
command: ["php", "artisan", "queue:work"]
scale: 3
See Also
- Quickstart Guide - Step-by-step tutorial
- Configuration Reference - All options explained