Download the PHP package pekral/cursor-rules without Composer

On this page you can find all versions of the php package pekral/cursor-rules. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package cursor-rules

Cursor Rules

Code Quality Check Tests

This repository contains custom rules for the Cursor editor.
The goal is to provide consistent, automated, and high-quality coding standards across PHP, Laravel, and testing workflows.

🚀 Installation

Quick Install

Install cursor rules using the provided binary script:

Installation Options

The installer will automatically:

📂 Repository Structure

Each rule file (.mdc) includes instructions that Cursor automatically attaches when writing, editing, or generating code.


📖 Rules Overview

Rule File Description Scope / Type
testing.mdc Guidelines for writing and maintaining Pest tests. Analyze classes before writing tests, keep tests simple and readable, and follow existing patterns. Always Apply
spatie.mdc Laravel & PHP coding standards derived from Spatie's guidelines. Follow Laravel conventions first, then PSR standards. Always apply
git.mdc Enforce Conventional Commits. All commit messages must follow the specification with short, consistent messages. Always Apply
code-aquality.mdc Code Quality guidelines: target the actual PHP version, verify information, avoid assumptions, no apologies, avoid commented-out code, and prefer file-by-file changes. Always Apply
clean-code.mdc Clean Code rules: typed properties, constructor promotion, short nullable notation, explicit void return types, and consistent class structure. Always Apply

🎯 How to Use

  1. Install rules using vendor/bin/cursor-rules install
  2. Cursor automatically applies rules marked with alwaysApply: true.
  3. To invoke manual rules, call them in the Cursor chat using @rule-name.
  4. When editing code, these rules act as guardrails to enforce standards, improve readability, and ensure test coverage.

✨ Benefits


📝 License

MIT – free to use, modify, and distribute.


📌 This setup ensures that every piece of generated code, commit, and test in Cursor follows best practices while remaining clean, maintainable, and production-ready.


See .github/README.md for detailed workflow documentation.


All versions of cursor-rules with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pekral/cursor-rules contains the following files

Loading the files please wait ....