# Cursor Skills PHP

> CURSOR-SKILLS rules for PHP (Laravel, Symfony, WordPress). PSR, Composer, security.

- Skill: `agent-kit-startup/cursor-skills-php` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agent-kit-startup/cursor-skills-php`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agent-kit-startup/cursor-skills-php/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- Author: agent-kit-startup (https://skillmd.com/u/agent-kit-startup)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/agent-kit-startup/cursor-skills-php

---


# CURSOR-SKILLS - PHP

Source: [cursor-skills/php](https://github.com/araguaci/cursor-skills/tree/main/php)

## CURSOR setup

- PHP Intelephense, PHP Debug (Xdebug), PHP DocBlocker, Composer.
- Laravel Blade / Symfony / WordPress snippets per project.

## Typical structure

```
project/
├── app/     ├── config/     ├── public/     ├── resources/
├── tests/   ├── vendor/     ├── composer.json   ├── composer.lock   └── .env
```

## Required standards

- **PSR**: PSR-1, PSR-2/PSR-12, PSR-4 (autoload).
- **Composer**: always for deps; `composer.lock`; autoload; separate dev deps.
- **Tools**: PHP CS Fixer, PHPStan, PHPUnit, Xdebug.

## By framework

- **Laravel**: Artisan, Eloquent, MVC, middleware, validation, PHPUnit, Laravel security.
- **Symfony**: Bundles, services, DI, PHPUnit, Symfony security.
- **WordPress**: Coding standards, hooks/filters, plugin/theme architecture, WP tests.

## Code and documentation

- PHPDoc on classes and methods; comments on complex logic; README and API docs.

## Security

- Validate and sanitize inputs; prepared statements; CSRF; secure auth; OWASP; password hashing; HTTPS.

## DB

- Normalization, indexes, FKs, naming conventions; prepared statements; avoid N+1; transactions.

## REST APIs (in PHP)

- REST, correct HTTP codes, versioning, JSON; auth, rate limit, CORS, HTTPS.

