Php Guidelines
Ensures PHP code adheres to PSR standards and best practices, improving readability and maintainability.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add php-guidelines npx -- -y @trustedskills/php-guidelines
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"php-guidelines": {
"command": "npx",
"args": [
"-y",
"@trustedskills/php-guidelines"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill provides access to and enforces PHP coding guidelines. It helps ensure code consistency, readability, and maintainability by applying established standards. The skill can be used to check existing code or enforce guidelines during development.
When to use it
- Reviewing a codebase for adherence to PSR standards.
- Automating code style checks in a CI/CD pipeline.
- Generating consistent code across a team of developers.
- Ensuring new PHP projects start with a standardized coding style.
Key capabilities
- Enforces PSR coding standards.
- Checks for code consistency.
- Provides automated code style feedback.
Example prompts
- "Check this PHP file for adherence to PSR-12."
- "Generate PHP code that follows the recommended coding guidelines."
- "What are the common mistakes in PHP coding style?"
Tips & gotchas
This skill assumes a basic understanding of PHP and coding standards. The specific PSR version enforced might be configurable, so check documentation for available options.
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.