cli/docs/cmd/php.md
Snider d112dab0d1 docs: reorganize into docs/cmd/ and add missing commands
- Move command docs to docs/cmd/ for better organization
- Add work.md: multi-repo operations (health, issues, reviews, etc.)
- Add docs.md: documentation management (list, sync)
- Add templates.md: LinuxKit template management
- Add setup.md: clone repos from registry
- Update index.md with full command reference

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 09:44:28 +00:00

2 KiB

core php

Laravel/PHP development environment with FrankenPHP, Vite, Horizon, Reverb, and Redis.

Commands

Command Description
core php dev Start development environment
core php test Run PHPUnit/Pest tests
core php fmt Format with Laravel Pint
core php analyse Static analysis with PHPStan
core php build Build production container
core php deploy Deploy to Coolify

Development Environment

# Start all services
core php dev

This starts:

  • FrankenPHP/Octane (HTTP server)
  • Vite dev server (frontend)
  • Laravel Horizon (queues)
  • Laravel Reverb (WebSockets)
  • Redis
# View unified logs
core php logs

# Stop all services
core php stop

Testing

# Run tests
core php test

# Parallel testing
core php test --parallel

# With coverage
core php test --coverage

Code Quality

# Format code
core php fmt

# Static analysis
core php analyse

# Run both
core php fmt && core php analyse

Building

# Build Docker container
core php build

# Build LinuxKit image
core php build --type linuxkit

# Run production locally
core php serve --production

Deployment

# Deploy to Coolify
core php deploy

# Deploy to staging
core php deploy --staging

# Check deployment status
core php deploy:status

# Rollback
core php deploy:rollback

Package Management

Link local packages for development:

# Link a local package
core php packages link ../my-package

# Update linked packages
core php packages update

# Unlink
core php packages unlink my-package

SSL/HTTPS

Local SSL with mkcert:

# Auto-configured with core php dev
# Uses mkcert for trusted local certificates

Configuration

Optional .core/php.yaml:

version: 1

dev:
  domain: myapp.test
  ssl: true
  services:
    - frankenphp
    - vite
    - horizon
    - reverb
    - redis

deploy:
  coolify:
    server: https://coolify.example.com
    project: my-project