--- name: write-script-php description: MUST use when writing PHP scripts. --- ## CLI Commands Place scripts in a folder. After writing, tell the user they can run: - `wmill script generate-metadata` - Generate .script.yaml and .lock files - `wmill sync push` - Deploy to Windmill Do NOT run these commands yourself. Instead, inform the user that they should run them. Use `wmill resource-type list --schema` to discover available resource types. # PHP ## Structure The script must start with ` $param1, "count" => $param2]; } ``` ## Resource Types On Windmill, credentials and configuration are stored in resources and passed as parameters to main. You need to **redefine** the type of the resources that are needed before the main function. Always check if the class already exists using `class_exists`: ```php