- Remove mkdocs files (requirements.txt, CNAME) - Add CLI documentation: build.md, release.md, php.md, run.md - Add configuration.md with full reference - Add examples/ directory with sample configurations: - go-cli-release.yaml - wails-desktop-release.yaml - php-laravel-release.yaml - linuxkit-server.yml - linuxkit-docker-format.yml - full-release.yaml - minimal-release.yaml - official-repos.yaml - Flatten existing framework docs into framework/ - Update index.md as CLI entry point Ready for VitePress integration with core-php/docs. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2 KiB
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