定制 sophireak/laracheck 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sophireak/laracheck

最新稳定版本:v1.0.9

Composer 安装命令:

composer require sophireak/laracheck

包简介

A smart pre-push helper script for Laravel teams. Checks setup, fixes safe issues, and explains problems with AI.

README 文档

README

A smart pre-push helper for Laravel teams. Checks your project, fixes safe issues silently, and explains problems with AI.

Install

composer require sophireak/laracheck
php artisan laracheck:install

Done. It runs automatically before every git push.

Commands

# Run manually
php artisan laracheck

# Run without auto-fix
php artisan laracheck --no-fix

# Run without AI explanations (faster, offline)
php artisan laracheck --no-ai

# Block push if issues remain
php artisan laracheck --strict

# One-time setup
php artisan laracheck:install

# Emergency bypass
git push --no-verify

What it checks

Check Auto-fix
.env exists
APP_KEY set
Missing .env keys ⚠ warn
Pending migrations ⚠ warn only
node_modules
Assets (only if frontend changed)
Storage symlink & permissions
vendor/
Uncommitted files ⚠ warn
Push to main/master ⚠ warn

Auto-fix is safe only — setup, installs, permissions. Never touches source code or git history.

Config

php artisan vendor:publish --tag=laracheck-config

Edit config/laracheck.php:

'mode'               => 'soft',        // soft | strict
'protected_branches' => ['main', 'master'],
'anthropic_api_key'  => env('ANTHROPIC_API_KEY'),

.env

ANTHROPIC_API_KEY=sk-ant-your-key-here
LARACHECK_MODE=soft

License

MIT — Sophireak

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固