Generate PHP Service
scaffold_serviceGenerate a PHP Service for a resource with business logic and input validation, injecting the repository via interface. Skips existing files unless overwrite is enabled.
Instructions
Generates a PHP Service for a resource (business logic + input validation). Receives the Repository through dependency injection via interface (contract first). Does not overwrite existing files unless overwrite=true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"resourceName": "<resourceName>"
},
"name": "scaffold_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| overwrite | No | ||
| resourceName | Yes | ||
| withRepository | No |