php-code-review

php-code-review is a skill for Claude Code from jeeinn/claude-skills. It costs 30 tokens per session (2,655 once invoked), scanned A, original, MIT.

A review workflow for PHP 7 and PHP 8 code that checks security, performance, and PSR-12 style conventions.

In plain words
What is it for?
Running the supplied security scan, checking code style, reviewing PHP code, and producing a structured review report.
Why use it?
It gives reviewers a consistent way to find common vulnerabilities, inefficient code, and formatting or naming problems.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Running the supplied security scan, checking code style, reviewing PHP code, and producing a structured review report.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jeeinn/claude-skills/php-code-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jeeinn/claude-skills --skill php-code-review
Clone the repo
git clone --depth 1 https://github.com/jeeinn/claude-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for php-code-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/jeeinn/claude-skills/php-code-review/github.svg)](https://agentmods.dev/skills/jeeinn/claude-skills/php-code-review)
Your own site
<a href="https://agentmods.dev/skills/jeeinn/claude-skills/php-code-review"><img src="https://agentmods.dev/badge/skills/jeeinn/claude-skills/php-code-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for php-code-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/jeeinn/claude-skills/php-code-review"><img src="https://agentmods.dev/badge/skills/jeeinn/claude-skills/php-code-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,655 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.02655
Opus 5.5 $0.00012 $0.01062
Sonnet 5.5 $0.00006 $0.00531
Haiku 4.5 $0.00003 $0.00265

Measured 3mo ago against content hash 71b44d34c1da, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

php-code-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

php-code-review/SKILL.md · 293 lines

How it starts

The opening of the file, as written. The whole thing — 293 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PHP Code Review Expert

This skill provides comprehensive PHP code review capabilities, combining automated analysis with expert-level insights for PHP7 and PHP8 development.

Quick Start

  1. Automated Security Scan: Use scripts/php-security-scanner.php for initial vulnerability detection
  2. Code Style Check: Apply configurations from references/php-cs-fixer-config.md
  3. Manual Review: Follow the systematic review process outlined below
  4. Report Generation: Use the structured output format for consistent documentation

Available Resources

  • Scripts: php-security-scanner.php - Automated security vulnerability scanner
  • References: php-cs-fixer-config.md - Ready-to-use PHP CS Fixer configurations
  • Examples: before-after-refactor.md - Real-world refactoring examples
  • Templates:
    • review-report-template.md - Comprehensive review report format
    • quick-checklist.md - 30-minute quick review checklist

Core Review Areas

1. Naming Conventions Check

Class Naming
  • PSR-4 Compliance: Class names must match file names
  • CamelCase: Use PascalCase for class names (e.g., UserController)
  • Suffix Patterns:
    • Controllers end with Controller (e.g., UserController)
    • Models end with Model or use singular nouns (e.g., User)
    • Services end with Service (e.g., EmailService)
Method Naming
  • camelCase: Methods use camelCase (e.g., getUserName())
  • Verb-Noun Pattern: Start with action word (e.g., validateInput(), processOrder())
  • Boolean Methods: Use is/has/can prefix (e.g., isValid(), hasPermission())
Variable Naming
  • camelCase: Variables use camelCase (e.g., $userName)
  • Descriptive: Use meaningful names (e.g., $customerEmail not $e)
  • Constants: UPPER_SNAKE_CASE (e.g., MAX_RETRY_COUNT)
Database Naming
  • Table Names: snake_case, plural (e.g., user_profiles)
  • Column Names: snake_case (e.g., created_at)
  • Foreign Keys: {singular_table}_id (e.g., user_id)

Read the full file on GitHub · 293 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 293 lines · 30 tokens per session scan A 71b44d34c1da

Subscribe to this mod's changes

php-code-review is a skill published in the GitHub repository jeeinn/claude-skills (5 stars, last pushed 10mo ago), licensed MIT. It adds 30 tokens to every session and 2,655 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

php-code-review compared with skills from other repositories

php-code-review next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
php-code-reviewjeeinn/claude-skillsSkill510mo agoMITA30Claude Code
php-hardeningKin9Zeus/senior-engineer-skillsSkill43d agoMITA221Claude Code
wp-coding-standardsmralaminahamed/wp-dev-skillsSkill294mo agoMITA303Claude Code
laravel-specialistJeffallan/claude-skillsSkill13ktodayMITA86Claude Code
php-proJeffallan/claude-skillsSkill13ktodayMITA107Claude Code
phx-reviewoliver-kriska/claude-elixir-phoenixSkill5803d agoMITA32Claude Code, Codex
coding-standardsvibeeval/vibecosystemSkill55322d agoMITA23Claude Code, Codex