docs/build/cli/php/example.md
Snider 85bbb8e828 docs: initial import of CorePHP documentation
173 markdown files covering:
- Framework architecture (lifecycle events, module system, multi-tenancy)
- Package docs (admin, api, mcp, tenant, commerce, content, developer)
- CLI reference (dev, build, go, php, deploy commands)
- Patterns (actions, repositories, seeders, services, HLCRF)
- Deployment (Docker, PHP, LinuxKit, templates)
- Publishing (Homebrew, AUR, npm, Docker, Scoop, Chocolatey)

Source: core-php/docs (core.help content)

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-03 17:51:03 +00:00

1.3 KiB

PHP Examples

Development

# Start all services
core php dev

# With HTTPS
core php dev --https

# Skip services
core php dev --no-vite --no-horizon

Testing

# Run all
core php test

# Parallel
core php test --parallel

# With coverage
core php test --coverage

# Filter
core php test --filter UserTest

Code Quality

# Format
core php fmt --fix

# Static analysis
core php analyse --level 9

Deployment

# Production
core php deploy

# Staging
core php deploy --staging

# Wait for completion
core php deploy --wait

# Check status
core php deploy:status

# Rollback
core php deploy:rollback

Configuration

.env

COOLIFY_URL=https://coolify.example.com
COOLIFY_TOKEN=your-api-token
COOLIFY_APP_ID=production-app-id
COOLIFY_STAGING_APP_ID=staging-app-id

.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

Package Linking

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

# Update linked
core php packages update

# Unlink
core php packages unlink my-package

SSL Setup

core php ssl
core php ssl --domain myapp.test