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. 01exploiting-insecure-deserialization

    1 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
  2. 02laravel-clean-architecture

    Implement Domain-Driven Design with typed DTOs, repository interfaces, and single-responsibility Action classes in Laravel. Use when creating domain folders, binding repository contracts in providers, or passing DTOs between layers. (triggers: app/Domains/**/*.php, app/Providers/*.php, domain, dto, repository, contract, adapter)

    Buildfrom Multi-Language Standards
  3. 03constant-time-analysis

    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
  4. 04woocommerce

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

    Buildfrom Mindrally Skills
  5. 05wp-phpstan

    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. 06exploiting-type-juggling-vulnerabilities

    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
  7. 07laravel

    Expert in Laravel PHP development with best practices and modern patterns

    Buildfrom Mindrally Skills
  8. 08laravel-sessions-middleware

    Configure Redis session drivers, register security-header middleware, and prevent session fixation in Laravel. Use when switching session drivers, adding HSTS/CSP headers via middleware, or regenerating sessions after login. (triggers: app/Http/Middleware/**/*.php, config/session.php, session, driver, handle, headers, csrf)

    Buildfrom Multi-Language Standards
  9. 09SecLists Web-Shells

    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
  10. 10laravel-security

    Harden Laravel apps with Policies for model authorization, Gate-based RBAC, validated mass assignment, and CSRF protection. Use when creating authorization policies, securing env config access, or preventing mass assignment vulnerabilities. (triggers: app/Policies/**/*.php, config/*.php, policy, gate, authorize, env, config)

    Buildfrom Multi-Language Standards
  11. 11php-error-handling

    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
  12. 12laravel-development

    Expert guidance for Laravel PHP development following best practices, SOLID principles, and Laravel conventions

    Buildfrom Mindrally Skills
  13. 13modern-drug-rehab-computer

    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
  14. 14laravel-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
  15. 15php-language

    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
  16. 16php-tooling

    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
  17. 17drupal-development

    Expert guidance for Drupal 10 module development with PHP 8+, SOLID principles, and Drupal coding standards

    Buildfrom Mindrally Skills
  18. 18php-development

    Expert guidance for PHP 8+ development with SOLID principles, PSR standards, and modern 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