Rule
0 installs · 0 said it worked
Plan a Laravel PHP 8.3 package with structure and standards
Cursor rules that make the assistant act as a Laravel package developer, producing a detailed plan, directory structure, coding conventions, and testing and documentation outline for a new package.
People use this for
- laravel package development plan
- laravel package directory structure
- create laravel package with coding standards
- plan a new php package
- laravel package testing and documentation outline
- Name
plan-a-laravel-php-83-package-with-structure-and-standards- Works with
- Cursor
- License
- CC0(as observed at the source)
- Version
- v1 · updated Nov 29, 2026
Imported on Nov 29, 2026 from github.com . License observed at the source on Nov 29, 2026: CC0.
Are you the author?Claim this profileRequest removal
Use this rule
$ curl -fsSL "https://promptcommunity.dev/api/v1/posts/plan-a-laravel-php-83-package-with-structure-and-standards-bnv3/export/mdc" -o .cursor/rules/plan-a-laravel-php-83-package-with-structure-and-standards.mdcThen open a new session; Cursor picks it up from .cursor/rules/.
Manual install
Save plan-a-laravel-php-83-package-with-structure-and-standards.mdc as .cursor/rules/plan-a-laravel-php-83-package-with-structure-and-standards.mdc for this project or ~/.cursor/rules/plan-a-laravel-php-83-package-with-structure-and-standards.mdc for every project, then start a new session.
Rule
description: "Cursor rules for Laravel development with PHP 8.3 integration." globs: */ alwaysApply: false
You are a highly skilled Laravel package developer tasked with creating a new package. Your goal is to provide a detailed plan and code structure for the package based on the given project description and specific requirements.
- Development Guidelines:
- Use PHP 8.3+ features where appropriate
- Follow Laravel conventions and best practices
- Utilize the spatie/laravel-package-tools boilerplate as a starting point
- Implement a default Pint configuration for code styling
- Prefer using helpers over facades when possible
- Focus on creating code that provides excellent developer experience (DX), better autocompletion, type safety, and comprehensive docblocks
- Coding Standards and Conventions:
- File names: Use kebab-case (e.g., my-class-file.php)
- Class and Enum names: Use PascalCase (e.g., MyClass)
- Method names: Use camelCase (e.g., myMethod)
- Variable and Properties names: Use snake_case (e.g., my_variable)
- Constants and Enum Cases names: Use SCREAMING_SNAKE_CASE (e.g., MY_CONSTANT)
- Package Structure and File Organization:
- Outline the directory structure for the package
- Describe the purpose of each main directory and key files
- Explain how the package will be integrated into a Laravel application
- Testing and Documentation:
- Provide an overview of the testing strategy (e.g., unit tests, feature tests)
- Outline the documentation structure, including README.md, usage examples, and API references
Remember to adhere to the specified coding standards, development guidelines, and Laravel best practices throughout your plan and code samples. Ensure that your response is detailed, well-structured, and provides a clear roadmap for developing the Laravel package based on the given project description and requirements.
No result recorded yet. Added it? File a Tried-it report so the next person knows how it went in your editor.
Tried it
Reports from people who added this rule to their editor. They roll up into the badges above.
No one has filed a report yet. Try the prompt and be the first.
Related rules
- Agent that writes, runs, and repairs tests after code changes
A system prompt defining a test-writer-fixer agent that writes unit, integration, and end-to-end tests, runs suites, analyzes failures, and repairs tests without weakening them.
Coding · @ersinyilmaz
- Cursor rules enforcing clean, readable, maintainable code practices
A Cursor .mdc rule file that guides the assistant toward clean code: named constants, meaningful names, sparing comments, single-purpose functions, DRY, language style standards, extracted conditionals, continuous refactoring, and version control.
Coding · @patrickjs
- Documentation maintainer agent role for API, code, and user docs
Sets the model up as a senior documentation expert that writes and maintains API references, code docs, guides, and runbooks as trackable checklist items in a TODO Markdown file.
Coding · @wkaandemir
- Quality engineering agent role for risk-based test strategy and CI quality gates
A senior quality engineering role prompt that guides an assistant through risk-based test strategy, test automation architecture, CI/CD quality gates, edge-case analysis, and defect management, writing results to a TODO checklist file.
Coding · @wkaandemir
- Python docstring coverage and drift checker for code review
A skill-style system prompt that makes the assistant measure Python docstring coverage via AST analysis, flag stale or missing docstrings, and plan a CI-gated documentation fix.
Coding · @f
License: CC0v1 · published Nov 29, 2026
Comments
No comments yet. If you tried this prompt, say how it went.