# php-pro

This skill guides PHP work involving generators, SPL structures, modern typing, and performance checks. Use it when building data-heavy code or reviewing PHP patterns.

- skill · `type=skill` · Claude Code · 228 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/development/php-pro
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/php-pro

## What it does

php-pro advises on generators and iterators, SPL structures such as `SplQueue` and `SplHeap`, and features introduced in PHP 8+. It favors PHP’s built-in functions where they fit, and covers strict typing and exception-based error handling. For large data sets, it points to generators as a way to process items without keeping the full set in memory.

The skill also covers profiling, stream contexts and filters, object-oriented patterns, and edge-case tests. Ask it to review a class for type coverage or to outline how to measure a bottleneck before changing the code. Its preference for PHP’s standard library means project-specific needs should guide whether an external package belongs in the solution.

For detailed implementation examples, the skill refers to `resources/implementation-playbook.md`. Keep requests within PHP development; the skill is scoped to that work.

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill development/php-pro
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill php-pro -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/php-pro/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/php-pro/

### Codex

**Manually: put the files in place**
- File: `.agents/skills/php-pro/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

**Manually: put the files in place**
- File: `.cursor/skills/php-pro/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates php-pro
```

2. **Manually: put the files in place**
- File: `.github/skills/php-pro/SKILL.md`

### Gemini CLI

**Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/development/php-pro
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/php-pro/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/development/php-pro

## When to use it
- process large data sets with generators
- choose an SPL structure for a queue or stack
- add strict types to PHP code
- profile a bottleneck before optimizing
- check error handling and edge cases

## Example prompts
- Rewrite this large-record processing code to use generators and avoid holding the whole data set in memory.
- Review this PHP class for strict typing and PHP 8+ features that fit its design.
- Show me how to measure the bottleneck in this PHP code before optimizing it.

## Similar
- [migrate-to-shoehorn](https://affpapa.org/en/nevibecode/skills/migrate-to-shoehorn.md) — skill · 475388 installs
- [write-swift](https://affpapa.org/en/nevibecode/skills/write-swift.md) — skill · 119300 installs
- [megacave](https://affpapa.org/en/nevibecode/skills/megacave.md) — skill · 25400 installs
- [find-docs](https://affpapa.org/en/nevibecode/skills/find-docs.md) — skill · 9400 installs
- [typescript-advanced-types](https://affpapa.org/en/nevibecode/skills/typescript-advanced-types.md) — skill · 92169 installs
- [smart-explore](https://affpapa.org/en/nevibecode/skills/smart-explore.md) — skill · 7300 installs

## Other versions with the same name
- [php-pro · jeffallan](https://affpapa.org/en/nevibecode/skills/httpsgithubcomjeffallan-php-pro.md) — 15500 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 804 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
