Files
main/rules-v0-deprecated/plasticode-telegram-api-cursorrules-prompt-file/php-general-rules.mdc
T
2025-03-03 23:40:27 +05:30

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.