Skip to content

Installation

Mohamed Elsaed edited this page Jul 5, 2026 · 2 revisions

📥 Installation

Get claude-kit into a Laravel project and run it for the first time.

Requirements

PHP 8.2+
Laravel 11, 12, or 13
Claude Code to use the rules, hooks, and skills
Node.js only if you want a frontend stack or the skills.sh finder
pcov / Xdebug optional, to enforce the coverage gate

The happy path

flowchart TD
    A[composer require --dev<br/>mohamed-ashraf-elsaed/claude-kit] --> B[php artisan claude-kit:install]
    B --> C[Answer the prompts]
    C --> D[composer install<br/>installs tooling + git hook]
    D --> E{Frontend stack?}
    E -- yes --> F[npm install]
    E -- no --> G[Fill CLAUDE.md TODOs]
    F --> G
    G --> H([Done — gate is live])
    classDef k fill:#22c55e,stroke:#15803d,color:#fff;
    class A,H k;
Loading
composer require --dev mohamed-ashraf-elsaed/claude-kit
php artisan claude-kit:install
composer install   # installs the selected tooling and wires the pre-commit hook
npm install        # only if a frontend stack was set up

From GitHub (before Packagist, or for a fork)

Show the VCS repository setup

Add a repository entry to your project's composer.json, then require the branch:

{
    "repositories": [
        { "type": "vcs", "url": "https://github.com/mohamed-ashraf-elsaed/claude-kit" }
    ]
}
composer require --dev mohamed-ashraf-elsaed/claude-kit:dev-main
php artisan claude-kit:install

What happens during install

  1. Detects your frontend stack and asks you to confirm it.
  2. Walks you through every choice (see Usage).
  3. Writes the files, skipping any that already exist (use --force to overwrite) and merging composer.json / package.json.
  4. Wires the git hooks path if the project is a git repo.

Verify it works

# Run the gate manually
vendor/mohamed-ashraf-elsaed/claude-kit/runtime/quality-checks.sh

Open Claude Code in the project, make a small change, and confirm the Stop hook runs the gate.

Tip

The coverage gate needs a driver. On Debian/Ubuntu: sudo apt install -y php8.4-pcov. Without one, tests still run and coverage is only warned.

Post-install checklist

  • composer install completed
  • npm install (if a frontend stack was chosen)
  • Filled the TODO placeholders in CLAUDE.md
  • Coverage driver installed (optional)

← Home · 🏠 Home · Usage →

Clone this wiki locally