Review Php
Analyzes PHP code for potential errors, security vulnerabilities, and style inconsistencies based on best practices.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add review-php npx -- -y @trustedskills/review-php
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"review-php": {
"command": "npx",
"args": [
"-y",
"@trustedskills/review-php"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill, review-php, allows AI agents to analyze and provide feedback on PHP code. It can identify potential errors, suggest improvements in style or efficiency, and generally assess the quality of a given PHP snippet. The agent will leverage its understanding of PHP syntax and best practices to offer constructive criticism.
When to use it
- Code Review Assistance: Have the AI agent review a piece of PHP code before submitting it for formal review by human developers.
- Learning & Improvement: Use the skill to understand why your PHP code might be suboptimal and learn better coding techniques.
- Automated Style Checks: Integrate this skill into an automated workflow to enforce consistent coding style across a project.
- Debugging Aid: Get suggestions for potential bugs or areas of concern within existing PHP scripts.
Key capabilities
- PHP Code Analysis
- Error Identification
- Style Suggestion
- Efficiency Improvement Recommendations
Example prompts
- "Review this PHP code and suggest improvements: [paste PHP code here]"
- "Can you check this PHP function for potential errors? [paste PHP function here]"
- "What are some ways to make this PHP script more efficient? [paste PHP script here]"
Tips & gotchas
The quality of the review depends heavily on the clarity and completeness of the provided PHP code. Ensure the agent receives a valid, self-contained snippet for best results.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.