wordpress php guzzle gutenberg cursorrules prompt
via PatrickJS/awesome-cursorrules
WordPress plugin development with PHP type hints, Guzzle HTTP client, and Gutenberg blocks.
What is wordpress php guzzle gutenberg cursorrules prompt ?
Guides development of WordPress plugins that integrate Guzzle-based HTTP clients, WP REST endpoints, and custom Gutenberg editor blocks. Use this rule when building plugins that combine server-side HTTP communication with modern block editor functionality.
- Enforce WordPress coding standards across PHP, JavaScript, and TypeScript
- Require PHP type hints for improved code clarity and safety
- Prioritize TypeScript over JavaScript for type safety
- Apply functional programming and composition patterns while respecting WordPress ecosystem conventions
- Optimize 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
Senior full-stack TypeScript, React, Node.js guidance with clean architecture, testing, and WHY-oriented reasoning.
Quantitative factor research skills for designing, evaluating, and mining alpha factors in equities markets.
Android development with Jetpack Compose, clean architecture, and Material Design 3.
Angular development with Novo Elements UI library using standalone components.
Expert Angular 18 + TypeScript development with Jest, emphasizing clean code and performance.
Manage Kubernetes clusters, add-ons, stacks, and credentials via the Ankra CLI platform.