Cursor · PluginsLenguajes
PHP 8
Strict types, enums and readonly.
by Prompt Studio
php
License: MITView original
Contents
Where it goes: .cursor/rules/php.mdc
---
description: Convenciones y buenas prácticas de PHP 8
globs: **/*.php
alwaysApply: false
---
# PHP 8
- `declare(strict_types=1)
- ` en cada archivo
- Tipos en parámetros, retornos y propiedades
- Usa `enum` y propiedades `readonly`
- Comparaciones con `===` e `in_array(..., true)`
More in Plugins
Next.js
App Router, Server Components, Server Actions and caching.
Python
Typing, package layout and tests with pytest.
React + TypeScript
Function components, hooks and strict typing.
Expo / React Native
Expo Router, styling and mobile performance.
Go
HTTP APIs, error handling and context.
Tailwind + shadcn/ui
Utility classes, design tokens and accessible components.