php-pro · davila7 — Claude Code skill for PHP: features and setup
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.
npx claude-code-templates@latest --skill development/php-proWhat php-pro 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.
What it helps with
- 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 for the agent
- 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.
How to install php-pro
1claude-code-templates
npx claude-code-templates@latest --skill development/php-pro2Skills CLI (Vercel)
npx skills add davila7/claude-code-templates --skill php-pro -a claude-code3Manually: put the files in place
~/.claude/skills/php-pro/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/php-pro/
Manually: put the files in place
.agents/skills/php-pro/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/php-pro/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install davila7/claude-code-templates php-pro2Manually: put the files in place
.github/skills/php-pro/SKILL.mdPlatform CLI
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/development/php-proManually: put the files in place
.devin/skills/php-pro/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about php-pro
How do I install php-pro in Claude Code?
Run npx claude-code-templates@latest --skill development/php-pro.
What does php-pro do?
It guides PHP development with generators, iterators, SPL structures, and modern typing. It also covers profiling and error handling.
Does php-pro require a third-party package?
The skill advises starting with PHP built-ins and the standard library, using external dependencies only when needed.
Similar skills
All skills for Programming languages →php-pro by other authors comes first.