jorgecortesdev/laravel-claudify
Composer 安装命令:
composer require jorgecortesdev/laravel-claudify
包简介
Configure Claude Code for Laravel projects. Installs skills, agents, plugins, permissions, hooks, and MCP server configs automatically.
README 文档
README
Configure Claude Code for Laravel projects with a single command.
Claudify detects your stack from composer.json and package.json, then sets up permissions, hooks, skills, and plugins — so you don't configure Claude Code manually for every Laravel app.
Requirements
- PHP 8.2+
- Laravel 11, 12, or 13
- Claude Code CLI
Installation
composer require jorgecortesdev/laravel-claudify --dev
Then run the install command:
php artisan claudify:install
What it does
The install command runs these steps in order:
1. Checks for Claude Code CLI
Exits with an error if claude is not in your PATH.
2. Detects your stack
Reads composer.json and package.json to detect:
- Pest, Pint, Boost (from
require-dev) - Node, Prettier, ESLint (from
package.json)
3. Offers to install Laravel Boost
If laravel/boost is not installed and your Laravel version supports it (11.45.3+, 12.41.1+, or 13+), you'll be asked whether to install it. Boost provides MCP tools, guidelines, and skills for Claude Code.
4. Installs hooks
Copies auto-format scripts to .claude/hooks/ based on detected formatters:
| Hook | Condition | What it does |
|---|---|---|
pint-format.sh |
Pint detected | Runs Pint on .php files after edits |
prettier-format.sh |
Prettier detected | Runs Prettier on non-PHP files after edits |
5. Writes .claude/settings.json
Generates permissions and deny rules based on your stack:
Base permissions (always included):
Bash(php:*),Bash(php artisan:*),Bash(composer:*)
Conditional permissions (when detected):
| Condition | Permissions added |
|---|---|
| Pest | Bash(vendor/bin/pest:*) |
| Pint | Bash(vendor/bin/pint:*), Bash(vendor/bin/pint --dirty:*) |
| Node | Bash(npm:*), Bash(npx:*) |
| Boost | All 9 Boost MCP tools: search-docs, application-info, database-query, database-schema, database-connections, read-log-entries, browser-logs, get-absolute-url, last-error |
Deny rules (always included):
Edit(.env*),Write(.env*)
Hooks (when formatters detected):
- PostToolUse on Edit/Write: runs Pint on
.phpfiles, Prettier on non-PHP files
If .claude/settings.json already exists, new settings are merged without overwriting your existing configuration. Duplicate permissions are deduplicated automatically.
6. Installs skills
Copies Laravel-specific skills to .claude/skills/:
| Skill | What it provides |
|---|---|
laravel-debugging |
Root-cause debugging: log inspection, reproduction tests, common bug patterns (N+1, mass assignment, middleware order, queue serialization) |
laravel-tdd-pest |
TDD with Pest: red-green-refactor cycle, HTTP testing, fakes, factories, database assertions, Sanctum/Gate/Inertia patterns |
laravel-conventions |
Coding standards: strict types, type hints, readonly DTOs, enums, naming conventions, file organization |
laravel-security |
Security patterns: input validation, Sanctum auth, policies, SQL injection, XSS, CSRF, rate limiting, file uploads |
laravel-architecture |
Application structure: services vs actions, when to extract, repositories (usually not), events vs observers, jobs, scaling patterns |
laravel-testing-browser |
Browser testing with Pest 4: visit(), interactions, assertions, smoke tests, mobile/device testing, dark mode, accessibility, visual regression, debugging |
Skills are tracked via a .claudify-manifest.json file so user-created skills in .claude/skills/ are never touched.
7. Installs plugins
Installs Claude Code plugins per-project using the claude CLI:
| Plugin | Condition |
|---|---|
laravel-simplifier@laravel |
Always |
php-lsp@claude-plugins-official |
Always |
typescript-lsp@claude-plugins-official |
Node dependencies detected |
Plugins already installed at any scope (user, project, or local) are skipped.
Dry run
Preview what would be configured without writing files:
php artisan claudify:install --dry-run
This shows the settings JSON, hook scripts, and skills that would be installed. It does not preview Boost installation or plugin installation since those require network access.
Auto-update on composer update
Add the update command to your composer.json so Claudify refreshes automatically when the package is updated:
{
"scripts": {
"post-update-cmd": [
"@php artisan claudify:update --ansi"
]
}
}
The update command re-runs guidelines, hooks, settings, and skills non-interactively. It skips Boost installation and plugin installation — those are first-install concerns handled by claudify:install.
Re-running
Safe to re-run claudify:install at any time. Settings are merged (not overwritten), skills are updated, and plugins already installed are skipped. Run it again after adding packages like Pest or Prettier to pick up new permissions and hooks.
Testing
composer test
Formatting
composer format
Acknowledgements
This package was inspired by Laravel Boost and its approach to configuring AI tools for Laravel projects. Some of the bundled skills were informed by community-shared Claude Code skills found across GitHub, rewritten and adapted for consistency and correctness.
License
MIT License. See LICENSE for details.
jorgecortesdev/laravel-claudify 适用场景与选型建议
jorgecortesdev/laravel-claudify 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 17 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 03 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「ai」 「mcp」 「developer-tools」 「claude」 「claude-code」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 jorgecortesdev/laravel-claudify 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jorgecortesdev/laravel-claudify 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 jorgecortesdev/laravel-claudify 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Puppeteer bridge for PHP, supporting the entire API.
Secure HTTP transport wrapper for MCP servers with API key auth, IP/Origin allowlisting, and rate limiting
Standardized event classes for MCP (Model Context Protocol) tool execution lifecycle
JSON Schema builder and validator for MCP tool definitions
Laravel implementation of the Model Context Protocol (MCP) SDK
Interactive CLI that generates customized Claude Code markdown files (CLAUDE.md, commands, agents) for PHP projects with Symfony, Laravel, Rector, PHPStan, PHP-CS-Fixer, GrumPHP and more.
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 36
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-30