Skip to main content

AI skills for PHP

AI Coding Skills for PHP

Browse the best AI coding skills for PHP in 2026, Laravel + Symfony scaffolding, Eloquent / Doctrine schemas, PHPUnit tests, Composer dependency audits, and PHP 8.4 features. Works with every major AI coding tool.

Short answer

The best AI coding skills for PHP are skills-hub's `code-review`, `unit-test` (PHPUnit + Pest auto-detection), `api-scaffold` (Laravel / Symfony), `db-schema` (Eloquent / Doctrine), `secure`, and `dependency-scan` (composer audit). All portable across Claude Code, Cursor, Codex CLI, Windsurf, Copilot, and Cline.

PHP still powers a huge fraction of the web in 2026, and Laravel + Symfony are first-class citizens in AI coding tools. The skills below detect your PHP stack (Laravel 11+, Symfony 7+, PHPUnit, Pest, Composer, PHP 8.4 with readonly properties + property hooks) and emit modern, type-hinted code rather than the PHP-5-ish patterns the model learned from old StackOverflow.

Top skills for PHP

  1. 01code-reviewer

    23 installs

    Use for any code review: a pull request, a diff, a commit, or a pasted function, handler or file in TypeScript, JavaScript, Python, Go, Swift, Kotlin, C#/.NET, Java, C, C++, Rust, Ruby, PHP or Dart/Flutter. Applies per-language rule packs (security such as SQL injection and missing auth, async and resource handling, error handling, performance) and scripts that score a PR's risk and complexity, then gives a merge verdict with blocking and non-blocking findings. Use whenever the user asks to review, check or look over code, says 'code review', 'review this PR', 'review this diff' or 'is this safe to merge', or asks what is wrong with a snippet, even a single function.

    Buildfrom Multi-Domain Skills
  2. 02php-security

    14 installs

    PHP-only security standards for database access, password handling, and input validation. Use when securing PHP apps against SQL injection, XSS, or weak password storage; defer Laravel middleware and security questions in other languages.

    Buildfrom Multi-Language Standards
  3. 03exploiting-insecure-deserialization

    7 installs

    Identifying and exploiting insecure deserialization vulnerabilities in Java, PHP, Python, and .NET applications to achieve remote code execution during authorized penetration tests.

    Buildfrom Cybersecurity Skills
  4. 04security-webshells

    5 installs

    Web shell samples for detection and analysis: PHP, ASP, ASPX, JSP, Python, Perl shells. Use for security research and detection system testing.

    Buildfrom Security Testing Skills
  5. 05wp-phpstan

    5 installs

    Use when configuring, running, or fixing PHPStan static analysis in WordPress projects (plugins/themes/sites): phpstan.neon setup, baselines, WordPress-specific typing, and handling third-party plugin classes.

    Buildfrom WordPress
  6. 06woocommerce

    4 installs

    WordPress and WooCommerce development guidelines with PHP best practices, security standards, and extensibility patterns

    Buildfrom Mindrally Skills
  7. 07php-testing

    4 installs

    Write unit and integration tests for PHP applications with PHPUnit and Pest. Use when writing PHPUnit unit tests or integration tests for PHP applications.

    Buildfrom Multi-Language Standards
  8. 08php-error-handling

    4 installs

    Implement modern PHP error and exception handling patterns. Use when implementing exception hierarchies, error handlers, or custom exceptions in PHP.

    Buildfrom Multi-Language Standards
  9. 09security-review

    3 installs

    AI-powered codebase security scanner that reasons about code like a security researcher — tracing data flows, understanding component interactions, and catching vulnerabilities that pattern-matching tools miss. Use this skill when asked to scan code for security vulnerabilities, find bugs, check for SQL injection, XSS, command injection, exposed API keys, hardcoded secrets, insecure dependencies, access control issues, or any request like "is my code secure?", "review for security issues", "audit this codebase", or "check for vulnerabilities". Covers injection flaws, authentication and access control bugs, secrets exposure, weak cryptography, insecure dependencies, and business logic issues across JavaScript, TypeScript, Python, Java, PHP, Go, Ruby, and Rust.

    Buildfrom GitHub Copilot
  10. 10test-guard

    2 installs

    Review generated or changed test code against universal testing rules before it ships. Best used reactively after an agent writes, edits, generates, or refactors tests, before presenting, committing, or merging them. Use for pytest (test_*.py, *_test.py), PHPUnit/Pest (*Test.php), Jest/Vitest (*.test.ts, *.spec.js), Go (*_test.go), files under tests/, __tests__/, or spec/, and review requests like 'write tests for X', 'add tests', 'test this', 'review these tests', or PR diffs containing tests. Can also guide test writing when explicitly invoked before the work. This skill is the quality gate that prevents AI-generated test bloat. DO NOT USE for production or implementation code review (use clean-code-guard), CI or test-runner configuration, running or debugging tests, or general architecture discussion.

    Buildfrom guard-skills
  11. 11php-pro

    2 installs

    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, sets up dependency injection, and scaffolds REST/GraphQL APIs. Use when working with Eloquent, Doctrine, Composer, Psalm, ReactPHP, or any PHP API development.

    Buildfrom Jeffallan Skills
  12. 12php-tooling

    2 installs

    Configure PHP ecosystem tooling, dependency management, and static analysis. Use when managing Composer dependencies, running PHPStan, or configuring PHP build tools.

    Buildfrom Multi-Language Standards
  13. 13php-best-practices

    2 installs

    Write PHP following PSR coding standards, SOLID principles, and code-quality guidelines. Use for PHP style, design, refactoring, naming, and guard clauses—not Composer/PSR-4 project configuration.

    Buildfrom Multi-Language Standards
  14. 14constant-time-analysis

    2 installs

    Detects timing side-channel vulnerabilities in cryptographic code. Use when implementing or reviewing crypto code, encountering division on secrets, secret-dependent branches, or constant-time programming questions in C, C++, Go, Rust, Swift, Java, Kotlin, C#, PHP, JavaScript, TypeScript, Python, or Ruby.

    Buildfrom Trail of Bits
  15. 15docs-guard

    1 installs

    Review generated or changed documentation before it ships — READMEs, API references, docstrings, PHPDoc/JSDoc, changelogs, tutorials, and doc sites. Best used reactively after an agent writes or edits docs, after code changes documented behavior, or before publishing docs. Use when the user says 'review the docs', 'is this documentation accurate', 'update the docs', 'write a README', 'document this API', 'add a docstring', or 'add a changelog entry'. Core job: verify every referenced function, flag, endpoint, config key, and code sample against the source; catch docs-vs-code drift; strip filler and unverifiable claims. DO NOT USE for production code review (use clean-code-guard), test review (use test-guard), marketing copy or blog posts, prose style editing of non-technical writing, or documentation site theming.

    Buildfrom guard-skills
  16. 16hunt-lfi

    1 installs

    Hunt Local File Inclusion (LFI), Remote File Inclusion (RFI), and Path Traversal — /etc/passwd read, log poisoning → RCE, PHP filter-chain RCE (no upload needed), php:// / data:// / zip:// / phar:// wrappers, RFI via allow_url_include, directory traversal read/write/delete. Covers OOB/blind LFI confirmation and false-positive discipline. Use when hunting file-include or path-traversal bugs on any target.

    Buildfrom Claude-BugHunter
  17. 17exploiting-type-juggling-vulnerabilities

    1 installs

    Exploits PHP type juggling vulnerabilities caused by loose (==) comparison operators to bypass authentication, defeat hash verification via magic hashes, and manipulate application logic through type coercion. Use when pentesting PHP applications that compare user input with ==, in_array, or hash functions without strict type checks.

    Buildfrom Cybersecurity Skills
  18. 18wordpress

    1 installs

    Expert in WordPress and WooCommerce development with PHP best practices

    Buildfrom Mindrally Skills

Frequently asked questions

Do AI skills handle modern PHP 8.4 features?

Yes, readonly classes, property hooks, asymmetric visibility, enums with interfaces. Modern skills check the composer.json php constraint and emit code that respects the actual target version.

Which framework is best supported, Laravel or Symfony?

Both are well supported. Laravel has slightly more 'magic' so skills lean on Eloquent and the helper-function ecosystem; Symfony patterns are more explicit and DI-driven.

What's the best AI tool for PHP?

Cursor and Claude Code are both strong. Cursor's PHP extension ecosystem (intelephense) gives the best inline experience; Claude Code shines for multi-file Laravel refactors.

Can AI generate Pest tests?

Yes. The unit-test skill detects Pest vs PHPUnit and emits the appropriate style, Pest's it() / test() syntax with proper dataset generators, or PHPUnit's classic class-based tests.

Other languages and frameworks