Php Expert
This AI expertly handles PHP code, offering debugging, optimization, and development assistance for efficient web application creation.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add oimiragieo-php-expert npx -- -y @trustedskills/oimiragieo-php-expert
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"oimiragieo-php-expert": {
"command": "npx",
"args": [
"-y",
"@trustedskills/oimiragieo-php-expert"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill provides expert guidance on PHP development, specifically within the Laravel framework. It helps ensure code adheres to best practices, coding standards, and package development guidelines for efficient web application creation. The skill focuses on providing advice relating to Laravel’s features and conventions, including data access, security, performance optimization, and developer experience.
When to use it
- When reviewing existing PHP/Laravel code to identify areas for improvement based on established best practices.
- During the development of new PHP/Laravel applications to ensure adherence to coding standards and architectural patterns.
- When creating Laravel packages to guide structure, conventions, and developer experience considerations.
- To receive guidance on implementing specific Laravel features like authentication, authorization, caching, or job queues.
Key capabilities
- Laravel Best Practices: Guidance on using Eloquent ORM, Repository pattern, built-in authentication/authorization, caching, job queues, testing tools (PHPUnit, Dusk), API versioning, localization, CSRF protection, and asset compilation (Laravel Mix).
- Coding Standards Enforcement: Ensures adherence to specific naming conventions for files (kebab-case), classes (PascalCase), methods (camelCase), variables (snake_case), constants (SCREAMING_SNAKE_CASE).
- Package Development Guidelines: Provides recommendations on utilizing
spatie/laravel-package-tools, implementing Pint configuration, and prioritizing developer experience. - Code Structure Guidance: Offers advice on outlining the directory structure for Laravel packages.
- Security Best Practices: Emphasizes secure coding practices such as parameterized queries and strong password hashing.
Example prompts
- "Review this PHP code snippet for adherence to Laravel best practices."
- "What are the recommended naming conventions for a new class in my Laravel package?"
- "How should I structure a new Laravel package, including directory organization?"
- “Suggest improvements to this code for better developer experience.”
Tips & gotchas
- The skill is specifically tailored to PHP development within the Laravel framework. Results may be less relevant outside of this context.
- It emphasizes following established conventions; deviating from these might not always yield optimal results according to the skill's guidance.
- Pay close attention to security recommendations, particularly regarding SQL injection prevention and password hashing.
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.