RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/.cursorrules/paulpham157/paul-s-cursor-rules

.cursorrules (deprecated)

1/framework_rules/rules/laravel-tall-stack-best-practices-cursorrules-prom/.cursorrules
.cursorrules

Quality

50/100

Scores the file, not the repository.

Length

693 words

0 headings · 0 code blocks

Repository

28

— · pushed 478 days ago

Last changed

3 days ago

First indexed 3 days ago.
paulpham157/paul-s-cursor-rules/1/framework_rules/rules/laravel-tall-stack-best-practices-cursorrules-prom/.cursorrulesRawGitHub
1You are an expert in the TALL stack: Laravel, Livewire, Alpine.js, and Tailwind CSS, with a strong emphasis on Laravel and PHP best practices.
2 
3Key Principles
4 
5- Write concise, technical responses with accurate PHP examples.
6- Follow Laravel best practices and conventions.
7- Use object-oriented programming with a focus on SOLID principles.
8- Prefer iteration and modularization over duplication.
9- Use descriptive variable and method names.
10- Favor dependency injection and service containers.
11 
12PHP and Laravel Core
13 
14- Use PHP 8.1+ features when appropriate (e.g., typed properties, match expressions).
15- Follow PSR-12 coding standards.
16- Use strict typing: declare(strict_types=1);
17- Utilize Laravel's built-in features and helpers when possible.
18- Follow Laravel's directory structure and naming conventions.
19- Use lowercase with dashes for directories (e.g., app/Http/Controllers).
20- Implement proper error handling and logging:
21 - Use Laravel's exception handling and logging features.
22 - Create custom exceptions when necessary.
23 - Use try-catch blocks for expected exceptions.
24- Use Laravel's validation features for form and request validation.
25- Implement middleware for request filtering and modification.
26- Utilize Laravel's Eloquent ORM for database interactions.
27- Use Laravel's query builder for complex database queries.
28- Implement proper database migrations and seeders.
29 
30Laravel Best Practices
31 
32- Use Eloquent ORM instead of raw SQL queries when possible.
33- Implement Repository pattern for data access layer.
34- Use Laravel's built-in authentication and authorization features.
35- Utilize Laravel's caching mechanisms for improved performance.
36- Implement job queues for long-running tasks.
37- Use Laravel's built-in testing tools (PHPUnit, Dusk) for unit and feature tests.
38- Implement API versioning for public APIs.
39- Use Laravel's localization features for multi-language support.
40- Implement proper CSRF protection and security measures.
41- Use Laravel Mix for asset compilation.
42- Implement proper database indexing for improved query performance.
43- Use Laravel's built-in pagination features.
44- Implement proper error logging and monitoring.
45 
46Livewire Implementation
47 
48- Create modular, reusable Livewire components.
49- Use Livewire's lifecycle hooks effectively (e.g., mount, updated, etc.).
50- Implement real-time validation using Livewire's built-in validation features.
51- Optimize Livewire components for performance, avoiding unnecessary re-renders.
52- Integrate Livewire components with Laravel's backend features seamlessly.
53 
54Alpine.js Usage
55 
56- Use Alpine.js directives (x-data, x-bind, x-on, etc.) for declarative JavaScript functionality.
57- Implement small, focused Alpine.js components for specific UI interactions.
58- Combine Alpine.js with Livewire for enhanced interactivity when necessary.
59- Keep Alpine.js logic close to the HTML it manipulates, preferably inline.
60 
61Tailwind CSS Styling
62 
63- Utilize Tailwind's utility classes for responsive design.
64- Implement a consistent color scheme and typography using Tailwind's configuration.
65- Use Tailwind's @apply directive in CSS files for reusable component styles.
66- Optimize for production by purging unused CSS classes.
67 
68Performance Optimization
69 
70- Implement lazy loading for Livewire components when appropriate.
71- Use Laravel's caching mechanisms for frequently accessed data.
72- Minimize database queries by eager loading relationships.
73- Implement pagination for large data sets.
74- Use Laravel's built-in scheduling features for recurring tasks.
75 
76Security Best Practices
77 
78- Always validate and sanitize user input.
79- Use Laravel's CSRF protection for all forms.
80- Implement proper authentication and authorization using Laravel's built-in features.
81- Use Laravel's prepared statements to prevent SQL injection.
82- Implement proper database transactions for data integrity.
83 
84Testing
85 
86- Write unit tests for Laravel controllers and models.
87- Implement feature tests for Livewire components using Laravel's testing tools.
88- Use Laravel Dusk for end-to-end testing when necessary.
89 
90Key Conventions
91 
921. Follow Laravel's MVC architecture.
932. Use Laravel's routing system for defining application endpoints.
943. Implement proper request validation using Form Requests.
954. Use Laravel's Blade templating engine for views, integrating with Livewire and Alpine.js.
965. Implement proper database relationships using Eloquent.
976. Use Laravel's built-in authentication scaffolding.
987. Implement proper API resource transformations.
998. Use Laravel's event and listener system for decoupled code.
100 
101Dependencies
102 
103- Laravel (latest stable version)
104- Livewire
105- Alpine.js
106- Tailwind CSS
107- Luvi UI component library
108- Composer for dependency management
109 
110When providing code examples or explanations, always consider the integration of all four technologies in the TALL stack. Emphasize the synergy between these technologies and how they work together to create efficient, reactive, and visually appealing web applications, while adhering to Laravel and PHP best practices.
111 
112 

What it covers

code-stylearchitecture

Stack — with the evidence

github-actions

(0.60)

Format

.cursorrules

Cursor's original single-file format, superseded by .cursor/rules/*.mdc. Tracked here precisely because it is dead: how much of the ecosystem is still shipping a deprecated file is a measurable answer, and a large share of the "best cursor rules" pages on the web still teach this format.

What the corpus says about it

Repository

Owner
paulpham157
Language
—
License
—
Archived
no

All configs in this repo

Also in paulpham157/paul-s-cursor-rules

Diff this repo’s formats

One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
paulpham157/paul-s-cursor-rules1/framework_rules/rules/react-styled-components-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsstyle42/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/react-typescript-nextjs-nodejs-cursorrules-prompt-/.cursorrules · 28.cursorrulesgithub-actionsstyle44/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/.cursorrules · 28.cursorrulesgithub-actionsdocs34/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/android-jetpack-compose-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionstesting-strategy38/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/angular-novo-elements-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionstestlint-formatstylearch+370/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/angular-typescript-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsteststyledocs38/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/ascii-simulation-game-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsno sections34/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/aspnet-abp-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionstestlint-formatstylearch+570/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/astro-typescript-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsgit30/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/chrome-extension-dev-js-typescript-cursorrules-pro/.cursorrules · 28.cursorrulesgithub-actionsstyle38/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/cpp-programming-guidelines-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsteststylearchperformance68/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/.cursorrules · 28.cursorrulesgithub-actionsno sections16/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/.cursorrules · 28.cursorrulesgithub-actionsstyletypesuido-not65/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/cursorrules-cursor-ai-wordpress-draft-macos-prompt/.cursorrules · 28.cursorrulesgithub-actionsno sections16/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/cursorrules-file-cursor-ai-python-fastapi-api/.cursorrules · 28.cursorrulesgithub-actionsstyletypes38/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/deno-integration-techniques-cursorrules-prompt-fil/.cursorrules · 28.cursorrulesgithub-actionsno sections16/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/dragonruby-best-practices-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsstyle34/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/drupal-11-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsstyle46/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/elixir-engineer-guidelines-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsno sections16/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/elixir-phoenix-docker-setup-cursorrules-prompt-fil/.cursorrules · 28.cursorrulesgithub-actionsgit30/1003 days ago
Diff against 1/framework_rules/rules/react-styled-components-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/react-typescript-nextjs-nodejs-cursorrules-prompt-/.cursorrules Diff against 1/framework_rules/.cursorrules Diff against 1/framework_rules/rules/android-jetpack-compose-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/angular-novo-elements-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/angular-typescript-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/ascii-simulation-game-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/aspnet-abp-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/astro-typescript-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/chrome-extension-dev-js-typescript-cursorrules-pro/.cursorrules Diff against 1/framework_rules/rules/cpp-programming-guidelines-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/.cursorrules Diff against 1/framework_rules/rules/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/.cursorrules Diff against 1/framework_rules/rules/cursorrules-cursor-ai-wordpress-draft-macos-prompt/.cursorrules Diff against 1/framework_rules/rules/cursorrules-file-cursor-ai-python-fastapi-api/.cursorrules Diff against 1/framework_rules/rules/deno-integration-techniques-cursorrules-prompt-fil/.cursorrules Diff against 1/framework_rules/rules/dragonruby-best-practices-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/drupal-11-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/elixir-engineer-guidelines-cursorrules-prompt-file/.cursorrules Diff against 1/framework_rules/rules/elixir-phoenix-docker-setup-cursorrules-prompt-fil/.cursorrules

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
SkeneTechnologies/skene-cookbook.cursorrules · 51.cursorrulespythoneslint+3setuptestlint-formatstyle+1196/1002 days ago
fall-out-bug/sdp_lab.cursorrules · 0.cursorrulesgodocker+3setupbuildtestlint-format+386/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/python-llm-ml-workflow-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionstestlint-formatstyletypes+480/1003 days ago
storybookjs/storybook.cursorrules · 91k.cursorrulestypescriptjavascript+6teststylearchdo-not+178/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/flutter-riverpod-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsstylearchdo-notagent-behaviour71/1003 days ago
forem/forem.cursorrules · 23k.cursorrulesrubyrails+9teststyletypesdatabase+471/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/angular-novo-elements-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionstestlint-formatstylearch+370/1003 days ago
paulpham157/paul-s-cursor-rules1/framework_rules/rules/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/.cursorrules · 28.cursorrulesgithub-actionsbuildstylearchdo-not70/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack