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

    2 installs

    Code review automation for TypeScript, JavaScript, Python, Go, Swift, Kotlin, C#, .NET, Java, C, C++, Rust, Ruby, PHP, and Dart/Flutter. Analyzes PRs for complexity and risk, checks code quality for SOLID violations and code smells, generates review reports. Use when reviewing pull requests, analyzing code quality, identifying issues, generating review checklists.

    Buildfrom Multi-Domain Skills
  2. 02exploiting-insecure-deserialization

    2 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
  3. 03php-concurrency

    1 installs

    Implement concurrency and non-blocking I/O in modern PHP. Use when implementing concurrent requests, async processing, or non-blocking I/O in PHP. (triggers: **/*.php, Fiber, suspend, resume, non-blocking, async)

    Buildfrom Multi-Language Standards
  4. 04wp-patterns

    1 installs

    Generate technically correct, design-distinctive WordPress block patterns. Use when creating block patterns, starter page patterns, template patterns, template part patterns, or improving pattern design quality. Covers pattern registration (PHP headers, auto/manual), block markup syntax, theme.json design tokens, categories, template types, accessibility, and i18n/escaping.

    Buildfrom WordPress
  5. 05php-development

    1 installs

    Expert guidance for PHP 8+ development with SOLID principles, PSR standards, and modern best practices

    Buildfrom Mindrally Skills
  6. 06php-language

    1 installs

    Apply core PHP language standards and modern 8.x features. Use when working with PHP 8.x features like enums, fibers, readonly properties, or named arguments. (triggers: **/*.php, declare, readonly, match, constructor, promotion, types)

    Buildfrom Multi-Language Standards
  7. 07exploiting-type-juggling-vulnerabilities

    1 installs

    Exploit PHP type juggling vulnerabilities caused by loose comparison operators to bypass authentication, circumvent hash verification, and manipulate application logic through type coercion attacks.

    Buildfrom Cybersecurity Skills
  8. 08php-security

    1 installs

    PHP security standards for database access, password handling, and input validation. Use when securing PHP apps against SQL injection, XSS, or weak password storage. (triggers: **/*.php, pdo, password_hash, htmlentities, filter_var)

    Buildfrom Multi-Language Standards
  9. 09woocommerce

    1 installs

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

    Buildfrom Mindrally Skills
  10. 10php-error-handling

    1 installs

    Implement modern PHP error and exception handling patterns. Use when implementing exception hierarchies, error handlers, or custom exceptions in PHP. (triggers: **/*.php, try, catch, finally, Throwable, set_exception_handler)

    Buildfrom Multi-Language Standards
  11. 11php-testing

    1 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. (triggers: tests/**/*.php, phpunit.xml, phpunit, pest, mock, assert, tdd)

    Buildfrom Multi-Language Standards
  12. 12wordpress

    1 installs

    Expert in WordPress and WooCommerce development with PHP best practices

    Buildfrom Mindrally Skills
  13. 13php-best-practices

    1 installs

    Write PHP following best practices, PSR standards, and code quality guidelines. Use when writing PHP following PSR standards, SOLID principles, or improving code quality. (triggers: **/*.php, psr-12, camelCase, PascalCase, dry, solid)

    Buildfrom Multi-Language Standards
  14. 14wp-phpstan

    1 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
  15. 15php-tooling

    1 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
  16. 16modern-drug-rehab-computer

    1 installs

    Comprehensive knowledge system for addiction recovery environments, supporting both residential and outpatient (IOP/PHP) patients. Expert in evidence-based treatment modalities (CBT, DBT, MI, EMDR, MAT), recovery resources, coping strategies, crisis intervention, family systems, and holistic wellness. Activate on "rehab", "addiction recovery", "substance abuse", "treatment center", "IOP", "PHP", "detox", "sobriety support", "MAT", "Suboxone", "methadone", "12 step", "SMART Recovery". NOT for prescribing medications (consult medical professionals), emergency overdose situations (call 911), or replacing licensed counselors/therapists.

    Healthcarefrom OpenClaw Medical
  17. 17security-webshells

    1 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
  18. 18laravel-architecture

    Enforce core architectural standards for scalable Laravel applications. Use when structuring controllers, service layers, action classes, Form Requests, or Service Container bindings in Laravel projects. (triggers: app/Http/Controllers/**/*.php, routes/*.php, controller, service, action, request, container)

    Buildfrom Multi-Language Standards

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