Rule

0 installs · 0 said it worked

PatrickJS@patrickjs·
CodingRule· for Cursor

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 · UnclaimedCC0

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.mdc

Then open a new session; Cursor picks it up from .cursor/rules/.

Download plan-a-laravel-php-83-package-with-structure-and-standards.mdc
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.

  1. 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
  1. 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)
  1. 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
  1. 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.

License: CC0v1 · published Nov 29, 2026

Comments

No comments yet. If you tried this prompt, say how it went.