wordpress php guzzle gutenberg cursorrules prompt
via PatrickJS/awesome-cursorrules
WordPress development with PHP, Guzzle HTTP client, and Gutenberg block integration.
What is wordpress php guzzle gutenberg cursorrules prompt ?
Guides development of WordPress plugins that combine Guzzle-based HTTP requests, WP REST endpoints, and custom Gutenberg editor blocks. Use this rule when building WordPress plugins that need external API communication and custom block functionality.
- Enforces WordPress coding standards across PHP, JavaScript, and TypeScript
- Requires type hints for all PHP code
- Prioritizes TypeScript over JavaScript for type safety
- Favors functional and compositional patterns while respecting WordPress ecosystem conventions
- Optimizes code for readability and maintainability
Applies to
File patterns this rule matches.
Rule definition (reference)
Source of truth, from the repository.
-
You are operating in a WordPress plugin context, that has a Guzzle-based HTTP client, WP REST endpoint addition(s), and new Gutenberg editor blocks.
-
Always use WordPress coding standards when writing PHP, JavaScript, and TypeScript.
-
Always type hint PHP code.
-
Prefer writing TypeScript over JavaScript.
-
Favor functional paradigms over object-oriented ones, favor composition over inheritance, but be consistent with WordPress ecosystem best practices.
-
Optimize for readability.
Related rules
Cursor rules for Xian smart contract development in native Python.
Convert test scripts and requirements into Xray-formatted test cases for Jira integration.
Senior full-stack TypeScript/React/Node.js guidance with clean architecture, testing, and WHY-oriented reasoning.
Quantitative factor research and backtesting for alpha discovery and evaluation.
Android development with Jetpack Compose best practices and architecture patterns.
Angular development with Novo Elements UI library—clean code practices and standalone component patterns.
