php-pro
Write idiomatic PHP code with generators, iterators, SPL data structures, and modern OOP features. Use PROACTIVELY for high-performance PHP applications.
- License 许可
- Apache-2.0
- 最近更新
- 2026-06-23
- Stars
- ★ 6
- Forks
- 0
01 前言 Front Matter
- name
- php-pro
- risk
- unknown
- source
- community
- date_added
- 2026-02-27
- description
- Write idiomatic PHP code with generators, iterators, SPL data structures, and modern OOP features. Use PROACTIVELY for high-performance PHP applications.
02 资源文件 36
- 参考文档ArtIntegration.md2.6 KB
- 参考文档CriticalRules.md3.3 KB
- 参考文档Patterns.md2.9 KB
- 参考文档Tools/package.json574 B
- 参考文档Tools/Ref-3d.md2.2 KB
- 参考文档Tools/Ref-animations.md790 B
- 参考文档Tools/Ref-assets.md1.6 KB
- 参考文档Tools/Ref-audio.md3.7 KB
- 参考文档Tools/Ref-calculate-metadata.md2.9 KB
- 参考文档Tools/Ref-can-decode.md1.5 KB
- 参考文档Tools/Ref-charts.md1.7 KB
- 参考文档Tools/Ref-compositions.md3.4 KB
- 参考文档Tools/Ref-display-captions.md3.6 KB
- 参考文档Tools/Ref-extract-frames.md5.4 KB
- 参考文档Tools/Ref-fonts.md3.4 KB
- 参考文档Tools/Ref-get-audio-duration.md1.3 KB
- 参考文档Tools/Ref-get-video-dimensions.md1.6 KB
- 参考文档Tools/Ref-get-video-duration.md1.3 KB
- 参考文档Tools/Ref-gifs.md3.8 KB
- 参考文档Tools/Ref-images.md2.7 KB
- 参考文档Tools/Ref-import-srt-captions.md2.1 KB
- 参考文档Tools/Ref-lottie.md1.7 KB
- 参考文档Tools/Ref-measuring-dom-nodes.md974 B
- 参考文档Tools/Ref-measuring-text.md2.9 KB
- 参考文档Tools/Ref-sequencing.md2.3 KB
- 参考文档Tools/Ref-tailwind.md422 B
- 参考文档Tools/Ref-text-animations.md700 B
- 参考文档Tools/Ref-timing.md3.8 KB
- 参考文档Tools/Ref-transcribe-captions.md850 B
- 参考文档Tools/Ref-transitions.md3.6 KB
- 参考文档Tools/Ref-trimming.md1.2 KB
- 参考文档Tools/Ref-videos.md3.4 KB
- 脚本Tools/Render.ts9.0 KB
- 脚本Tools/Theme.ts4.4 KB
- 参考文档Tools/tsconfig.json441 B
- 参考文档Workflows/ContentToAnimation.md22.9 KB
03 SKILL.md 正文
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
- Start with built-in PHP functions before writing custom implementations
- Use generators for large datasets to minimize memory footprint
- Apply strict typing and leverage type inference
- Use SPL data structures when they provide clear performance benefits
- Profile performance bottlenecks before optimizing
- Handle errors with exceptions and proper error levels
- Write self-documenting code with meaningful names
- 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.
04 同仓库更多 Skills
test_skill
暂无简介
zustand-store-ts
Create Zustand stores following established patterns with proper TypeScript types and middleware.
zoom-automation
Automate Zoom meeting creation, management, recordings, webinars, and participant tracking via Rube MCP (Composio). Always search tools first for current schemas.
zoho-crm-automation
Automate Zoho CRM tasks via Rube MCP (Composio): create/update records, search contacts, manage leads, and convert leads. Always search tools first for current schemas.
zod-validation-expert
Expert in Zod — TypeScript-first schema validation. Covers parsing, custom errors, refinements, type inference, and integration with React Hook Form, Next.js, and tRPC.
zeroize-audit
Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C/C++/Rust code handling secrets, keys, passwords, or other sensitive data.