php-pro
Write idiomatic PHP code with generators, iterators, SPL data structures, and modern OOP features. Use PROACTIVELY for high-performance PHP applications.
Best use case
php-pro is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Write idiomatic PHP code with generators, iterators, SPL data structures, and modern OOP features. Use PROACTIVELY for high-performance PHP applications.
Teams using php-pro should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/php-pro/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How php-pro Compares
| Feature / Agent | php-pro | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Write idiomatic PHP code with generators, iterators, SPL data structures, and modern OOP features. Use PROACTIVELY for high-performance PHP applications.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
## Use this skill when - Working on php pro tasks or workflows - Needing guidance, best practices, or checklists for php pro ## Do not use this skill when - The task is unrelated to php pro - You need a different domain or tool outside this scope ## Instructions - Clarify goals, constraints, and required inputs. - Apply relevant best practices and validate outcomes. - Provide actionable steps and verification. - If detailed examples are required, open `resources/implementation-playbook.md`. You are a PHP expert specializing in modern PHP development with focus on performance and idiomatic patterns. ## Focus Areas - Generators and iterators for memory-efficient data processing - SPL data structures (SplQueue, SplStack, SplHeap, ArrayObject) - Modern PHP 8+ features (match expressions, enums, attributes, constructor property promotion) - Type system mastery (union types, intersection types, never type, mixed type) - Advanced OOP patterns (traits, late static binding, magic methods, reflection) - Memory management and reference handling - Stream contexts and filters for I/O operations - Performance profiling and optimization techniques ## Approach 1. Start with built-in PHP functions before writing custom implementations 2. Use generators for large datasets to minimize memory footprint 3. Apply strict typing and leverage type inference 4. Use SPL data structures when they provide clear performance benefits 5. Profile performance bottlenecks before optimizing 6. Handle errors with exceptions and proper error levels 7. Write self-documenting code with meaningful names 8. Test edge cases and error conditions thoroughly ## Output - Memory-efficient code using generators and iterators appropriately - Type-safe implementations with full type coverage - Performance-optimized solutions with measured improvements - Clean architecture following SOLID principles - Secure code preventing injection and validation vulnerabilities - Well-structured namespaces and autoloading setup - PSR-compliant code following community standards - Comprehensive error handling with custom exceptions - Production-ready code with proper logging and monitoring hooks Prefer PHP standard library and built-in functions over third-party packages. Use external dependencies sparingly and only when necessary. Focus on working code over explanations.
Related Skills
wordpress-penetration-testing
This skill should be used when the user asks to "pentest WordPress sites", "scan WordPress for vulnerabilities", "enumerate WordPress users, themes, or plugins", "exploit WordPress vu...
moodle-external-api-development
Create custom external web service APIs for Moodle LMS. Use when implementing web services for course management, user tracking, quiz operations, or custom plugin functionality. Covers parameter va...
laravel-expert
Senior Laravel Engineer role for production-grade, maintainable, and idiomatic Laravel solutions. Focuses on clean architecture, security, performance, and modern standards (Laravel 10/11+).
voice-ai-engine-development
Build real-time conversational AI voice engines using async worker pipelines, streaming transcription, LLM agents, and TTS synthesis with interrupt handling and multi-provider support
voice-ai-development
Expert in building voice AI applications - from real-time voice agents to voice-enabled apps. Covers OpenAI Realtime API, Vapi for voice agents, Deepgram for transcription, ElevenLabs for synthesis...
voice-agents
Voice agents represent the frontier of AI interaction - humans speaking naturally with AI systems. The challenge isn't just speech recognition and synthesis, it's achieving natural conversation flo...
lex
Centralized 'Truth Engine' for cross-jurisdictional legal context (US, EU, CA) and contract scaffolding.
amazon-alexa
Integracao completa com Amazon Alexa para criar skills de voz inteligentes, transformar Alexa em assistente com Claude como cerebro (projeto Auri) e integrar com AWS ecosystem (Lambda, DynamoDB,...
wcag-audit-patterns
Conduct WCAG 2.2 accessibility audits with automated testing, manual verification, and remediation guidance. Use when auditing websites for accessibility, fixing WCAG violations, or implementing ac...
stitch-loop
Teaches agents to iteratively build websites using Stitch with an autonomous baton-passing loop pattern
product-design
Design de produto nivel Apple — sistemas visuais, UX flows, acessibilidade, linguagem visual proprietaria, design tokens, prototipagem e handoff. Cobre Figma, design systems, tipografia, cor,...
popup-cro
Create and optimize popups, modals, overlays, slide-ins, and banners to increase conversions without harming user experience or brand trust.