Generates GitHub Actions CI/CD workflows for PHP projects: PHPStan/Psalm analysis, PHPUnit tests with coverage, Docker builds, security scans, and staging/production deployments.
From accnpx claudepluginhub dykyi-roman/awesome-claude-code --plugin accThis skill uses the workspace's default tool permissions.
references/examples.mdreferences/templates.mdGenerates optimized GitHub Actions workflows for PHP projects.
.github/
└── workflows/
├── ci.yml # Main CI pipeline
├── security.yml # Security scanning
└── deploy.yml # Deployment workflow
ci.yml)4-stage pipeline with dependency caching and parallel execution:
| Stage | Jobs | Purpose |
|---|---|---|
| 1. Install | install | Composer install, upload vendor artifact |
| 2. Analysis | phpstan, psalm, cs-fixer, deptrac | Static analysis (parallel) |
| 3. Tests | test-unit, test-integration | PHPUnit with coverage upload |
| 4. Build | build | Docker image build and push (main/tags only) |
Key features:
actions/cache@v4actions/upload-artifact@v4security.yml)Triggers: push to main, PRs, weekly schedule (Monday).
| Job | Tool | Purpose |
|---|---|---|
dependency-audit | composer audit | Known vulnerability check |
psalm-security | Psalm taint analysis | Data flow security |
trivy | Trivy + SARIF | Container image scanning |
deploy.yml)Triggers: version tags (v*), manual workflow_dispatch.
| Job | Condition | Environment |
|---|---|---|
deploy-staging | Push or manual staging | staging |
deploy-production | Tags or manual production | production |
Features: environment protection rules, health checks, sequential staging-then-production.
Cross-version testing pattern for libraries:
| Dimension | Values |
|---|---|
| PHP versions | 8.2, 8.3, 8.4 |
| Dependencies | lowest, highest |
| Coverage | Only on PHP 8.4 + highest |
Uses fail-fast: false to run all combinations.
Analyze project:
composer.json for tools (phpstan, psalm, php-cs-fixer, deptrac).github/workflows/ directoryGenerate appropriate workflows:
Customize based on:
composer.json require.phpAll workflows go in .github/workflows/:
| File | When Generated |
|---|---|
ci.yml | Always |
security.yml | When security tools detected or requested |
deploy.yml | When deployment infrastructure detected |
ci.yml, security.yml)test-unit, deploy-staging)Run PHPStan, Upload coverage)PHP_VERSION, COMPOSER_ARGS)| Template | Lines | Key Actions Used |
|---|---|---|
| CI Pipeline | ~270 | checkout@v4, setup-php@v2, cache@v4, upload-artifact@v4, codecov-action@v4, build-push-action@v5 |
| Security | ~70 | checkout@v4, setup-php@v2, trivy-action, upload-sarif |
| Deploy | ~70 | checkout@v4, environments, health checks |
| Matrix | ~30 | setup-php@v2, strategy matrix |
Provide:
composer.jsonThe generator will:
references/templates.md — Full YAML workflow templates (CI, Security, Deploy, Matrix)references/examples.md — Concrete usage examples (minimal CI, multi-service, caching, artifacts, deployment)Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.