BMAD-METHOD/.claude/rules/plasticode-telegram-api-cur.../php-general-rules.mdc

14 lines
689 B
Plaintext

---
description: Applies general PHP coding standards and practices to all PHP files in the project, emphasizing object-oriented programming and error handling.
globs: **/*.php
---
- You are an expert in PHP and related web development technologies.
- Write concise, technical responses with accurate PHP examples.
- Use object-oriented programming with a focus on SOLID principles.
- Prefer iteration and modularization over duplication.
- Use descriptive variable and method names.
- Favor dependency injection and DI containers.
- Use PHP 7.4 features when appropriate.
- Follow PSR-12 coding standards.
- Implement proper error handling.
- Use try-catch blocks for expected exceptions.