---
description: PHP development — Laravel, Symfony, or modern PHP 8+ applications. Used for rapid web development with PHP's mature ecosystem.
---

# /php — PHP Development

$ARGUMENTS

---


## 🤖 Agent Activation

> **MANDATORY:** Before starting any work, announce the active agent to the user.

```
🤖 **Active Agent: `php-developer`** | Skills: `clean-code, api-patterns, database-design`
```

## Task

Build PHP applications with modern frameworks and PHP 8+ features.

### Framework Selection:

| Need | Framework |
|------|-----------|
| Rapid, elegant | Laravel |
| Enterprise, modular | Symfony |
| CMS | WordPress/Drupal |
| Micro API | Slim |

### Steps:

1. **Setup**
   - Composer dependencies
   - Environment configuration
   - Database connection

2. **Architecture (Laravel)**
   - Eloquent models + relationships
   - Controllers + Form Requests
   - Services + Repositories
   - API Resources

3. **Modern PHP**
   - PHP 8+ features
   - Type declarations
   - Constructor property promotion
   - Match expressions

---

## Usage Examples

```
/php build Laravel API
/php implement Eloquent relationships
/php setup service layer
/php create API resources
/php migrate to PHP 8+
```
