A comprehensive collection of Cursor rules and best practices for Drupal development, PHP coding standards, and web development workflows.
This repository contains Cursor AI rules (.mdc files) that help enforce coding standards, best practices, and provide intelligent code suggestions for Drupal and PHP development.
rules/drupal-general-guidelines.mdc- General Drupal development guidelines and best practicesrules/drupal-cursor-rules.mdc- Technical Drupal development rules and standardsrules/php-drupal-standards-consolidated.mdc- Comprehensive PHP and Drupal coding standards
rules/accessibility-standards.mdc- Web accessibility standardsrules/api-standards.mdc- API development standardsrules/docker-compose-standards.mdc- Docker Compose best practicesrules/php-drupal-best-practices.mdc- PHP Drupal development best practicesrules/php-drupal-development-standards.mdc- PHP Drupal development standardsrules/php-memory-optimisation.mdc- PHP memory optimization techniques
rules/drupal-authentication-failures.mdc- Drupal authentication securityrules/drupal-broken-access-control.mdc- Access control securityrules/drupal-injection.mdc- Injection attack preventionrules/drupal-logging-failures.mdc- Security logging practicesrules/drupal-ssrf.mdc- Server-side request forgery prevention
These rules are designed to work with Cursor AI to provide intelligent code suggestions, enforce coding standards, and ensure best practices are followed in Drupal development projects.
- PHP 8.1+ Support: Modern PHP features and standards
- Drupal 9.4+ Compatibility: Current Drupal development practices
- Security First: Built-in security best practices
- Performance Optimization: Performance-focused coding standards
- Accessibility: WCAG compliance guidelines
- Code Quality: Comprehensive linting and formatting rules
Feel free to submit issues and enhancement requests!
This project is open source and available under the MIT License.