-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Mohamed Elsaed edited this page Jul 5, 2026
·
2 revisions
Get claude-kit into a Laravel project and run it for the first time.
| 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 |
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;
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 upShow 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- Detects your frontend stack and asks you to confirm it.
- Walks you through every choice (see Usage).
- Writes the files, skipping any that already exist (use
--forceto overwrite) and mergingcomposer.json/package.json. - Wires the git hooks path if the project is a git repo.
# Run the gate manually
vendor/mohamed-ashraf-elsaed/claude-kit/runtime/quality-checks.shOpen 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.
-
composer installcompleted -
npm install(if a frontend stack was chosen) - Filled the
TODOplaceholders inCLAUDE.md - Coverage driver installed (optional)
claude-kit — one-command Claude Code + quality gate for Laravel
⭐ Star · 📦 Packagist · 🐛 Issues · 💬 Discussions · 📝 Changelog
MIT © Mohamed Elsaed
Getting started
Reference
Project