mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-30 23:04:59 +08:00
add .mdc file
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
---
|
||||
description: Rules pertaining to Composer dependency management, promoting best practices for declaring and updating dependencies.
|
||||
globs: **/composer.json
|
||||
---
|
||||
- Use Composer for dependency management.
|
||||
- Ensure dependencies are properly declared in composer.json.
|
||||
- Update dependencies regularly.
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
---
|
||||
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.
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
---
|
||||
description: Specific rules for files within the Plasticode framework directory, focusing on dependency management and Plasticode conventions.
|
||||
globs: **/plasticode/**/*.*
|
||||
---
|
||||
- When working with Plasticode, follow Plasticode conventions.
|
||||
- Use Composer for dependency management.
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Rules for files related to the Telegram Bot API integration, emphasizing API-specific best practices.
|
||||
globs: **/telegram_bot/**/*.*
|
||||
---
|
||||
- When working with Telegram Bot API, use relevant API best practices.
|
||||
Reference in New Issue
Block a user