GitHub 星标
0
月装机量
16
近 7 天 9
综合评分SCORE
15.7
生态多维模型
最近提交
7 个月前
2026-01-12
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@eznix/laravel-opencode@0.0.1"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@eznix/laravel-opencode@0.0.1"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D @eznix/laravel-opencodeopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
README.md
查看原始文件→A collection of OpenCode plugins tailored for PHP / Laravel development.
Plugins
laravel-simplifier
A code simplification agent that refines PHP / Laravel code for clarity, consistency, and maintainability while preserving functionality.
Features:
- Applies common Laravel conventions and standards
- Reduces unnecessary complexity and nesting
- Improves readability through clear naming
- Focuses on recently modified code by default
- Preserves all original functionality
Installation
...
Usage
Once installed, tell OpenCode to use the agent after a long coding session:
> Review recent changes using the laravel-simplifier agent