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 1mo 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 1mo 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. 1mo 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 9mo 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

Other skills, from other repositories

wp-coding-standards

Use when setting up PHPCS with WordPress Coding Standards (WPCS), configuring phpcs.xml.dist, running phpcs/phpcbf, fixing sniff violations, adding PHPCS to CI (GitHub Actions), configuring IDE integration, or verifying a plugin meets WP.org code style requirements. Covers squizlabs/phpcodesniffer…

mralaminahamed/wp-dev-skills · 303 tokens

laravel-specialist

Build and configure Laravel 10+ applications, including creating Eloquent models and relationships, implementing Sanctum authentication, configuring Horizon queues, designing RESTful APIs with API resources, and building reactive interfaces with Livewire. Use when creating Laravel models, setting up queue workers…

Jeffallan/claude-skills · 86 tokens

php-pro

Use when building PHP applications with modern PHP 8.3+ features, Laravel, or Symfony frameworks. Invokes strict typing, PHPStan level 9, async patterns with Swoole, and PSR standards. Creates controllers, configures middleware, generates migrations, writes PHPUnit/Pest tests, defines typed DTOs and value objects…

Jeffallan/claude-skills · 107 tokens

phx-review

Review changed Elixir/Phoenix code read-only. Check requirements, cite evidence, deduplicate findings, and return a severity-based verdict.

oliver-kriska/claude-elixir-phoenix · 32 tokens

llamaindex-development

Expert guidance for LlamaIndex development including RAG applications, vector stores, document processing, query engines, and building production AI applications.

Mindrally/skills · 32 tokens

r-tidyverse-style

Use when the user asks to review or clean up R code for tidyverse style, standardize formatting or names, remove redundant comments or wrappers, or make a behavior-preserving style pass. Also use when writing substantial new R package code if the user requests tidyverse style or the package already follows it. Not for…

posit-dev/skills · 83 tokens