laravel-plugin-discovery

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Laravel Plugin Discovery

Laravel插件查找

Find, evaluate, and choose healthy Laravel packages using the LaraPlugins.io MCP server.
使用LaraPlugins.io MCP服务器查找、评估并选择健康的Laravel包。

When to Use

适用场景

  • User wants to find Laravel packages for a specific feature (e.g. "auth", "permissions", "admin panel")
  • User asks "what package should I use for..." or "is there a Laravel package for..."
  • User wants to check if a package is actively maintained
  • User needs to verify Laravel version compatibility
  • User wants to assess package health before adding to a project
  • 用户想要查找实现特定功能(例如"auth"、"权限"、"管理面板")的Laravel包
  • 用户询问"我应该用什么包来实现…"或者"有没有能实现…的Laravel包"
  • 用户想要检查某个包是否还在积极维护
  • 用户需要验证Laravel版本兼容性
  • 用户想要在将包加入项目前评估其健康度

MCP Requirement

MCP要求

LaraPlugins MCP server must be configured. Add to your
~/.claude.json
mcpServers:
json
"laraplugins": {
  "type": "http",
  "url": "https://laraplugins.io/mcp/plugins"
}
No API key required — the server is free for the Laravel community.
必须配置LaraPlugins MCP服务器。将以下内容添加到你的
~/.claude.json
的mcpServers配置中:
json
"laraplugins": {
  "type": "http",
  "url": "https://laraplugins.io/mcp/plugins"
}
无需API密钥——该服务器对Laravel社区免费开放。

MCP Tools

MCP工具

The LaraPlugins MCP provides two primary tools:
LaraPlugins MCP提供两个核心工具:

SearchPluginTool

SearchPluginTool

Search packages by keyword, health score, vendor, and version compatibility.
Parameters:
  • text_search
    (string, optional): Keyword to search (e.g. "permission", "admin", "api")
  • health_score
    (string, optional): Filter by health band —
    Healthy
    ,
    Medium
    ,
    Unhealthy
    , or
    Unrated
  • laravel_compatibility
    (string, optional): Filter by Laravel version —
    "5"
    ,
    "6"
    ,
    "7"
    ,
    "8"
    ,
    "9"
    ,
    "10"
    ,
    "11"
    ,
    "12"
    ,
    "13"
  • php_compatibility
    (string, optional): Filter by PHP version —
    "7.4"
    ,
    "8.0"
    ,
    "8.1"
    ,
    "8.2"
    ,
    "8.3"
    ,
    "8.4"
    ,
    "8.5"
  • vendor_filter
    (string, optional): Filter by vendor name (e.g. "spatie", "laravel")
  • page
    (number, optional): Page number for pagination
按关键词、健康评分、供应商和版本兼容性搜索包。
参数:
  • text_search
    (字符串,可选):要搜索的关键词(例如"permission"、"admin"、"api")
  • health_score
    (字符串,可选):按健康等级筛选——
    Healthy
    Medium
    Unhealthy
    Unrated
  • laravel_compatibility
    (字符串,可选):按Laravel版本筛选——
    "5"
    "6"
    "7"
    "8"
    "9"
    "10"
    "11"
    "12"
    "13"
  • php_compatibility
    (字符串,可选):按PHP版本筛选——
    "7.4"
    "8.0"
    "8.1"
    "8.2"
    "8.3"
    "8.4"
    "8.5"
  • vendor_filter
    (字符串,可选):按供应商名称筛选(例如"spatie"、"laravel")
  • page
    (数字,可选):分页页码

GetPluginDetailsTool

GetPluginDetailsTool

Fetch detailed metrics, readme content, and version history for a specific package.
Parameters:
  • package
    (string, required): Full Composer package name (e.g. "spatie/laravel-permission")
  • include_versions
    (boolean, optional): Include version history in response

获取特定包的详细指标、README内容和版本历史。
参数:
  • package
    (字符串,必填):完整的Composer包名(例如"spatie/laravel-permission")
  • include_versions
    (布尔值,可选):是否在响应中包含版本历史

How It Works

使用流程

Finding Packages

查找包

When the user wants to discover packages for a feature:
  1. Use
    SearchPluginTool
    with relevant keywords
  2. Apply filters for health score, Laravel version, or PHP version
  3. Review the results with package names, descriptions, and health indicators
当用户想要查找实现某类功能的包时:
  1. 搭配相关关键词调用
    SearchPluginTool
  2. 按健康评分、Laravel版本或PHP版本添加筛选条件
  3. 查看返回结果中的包名、描述和健康标识

Evaluating Packages

评估包

When the user wants to assess a specific package:
  1. Use
    GetPluginDetailsTool
    with the package name
  2. Review health score, last updated date, Laravel version support
  3. Check vendor reputation and risk indicators
当用户想要评估某个特定包时:
  1. 传入包名调用
    GetPluginDetailsTool
  2. 查看健康评分、最后更新日期、Laravel版本支持情况
  3. 检查供应商信誉和风险标识

Checking Compatibility

检查兼容性

When the user needs Laravel or PHP version compatibility:
  1. Search with
    laravel_compatibility
    filter set to their version
  2. Or get details on a specific package to see its supported versions

当用户需要确认Laravel或PHP版本兼容性时:
  1. 搜索时将
    laravel_compatibility
    筛选条件设置为对应版本
  2. 或者获取特定包的详情,查看其支持的版本范围

Examples

示例

Example: Find Authentication Packages

示例:查找认证相关包

SearchPluginTool({
  text_search: "authentication",
  health_score: "Healthy"
})
Returns packages matching "authentication" with healthy status:
  • spatie/laravel-permission
  • laravel/breeze
  • laravel/passport
  • etc.
SearchPluginTool({
  text_search: "authentication",
  health_score: "Healthy"
})
返回健康状态为Healthy、匹配"authentication"关键词的包:
  • spatie/laravel-permission
  • laravel/breeze
  • laravel/passport
  • 等等

Example: Find Laravel 12 Compatible Packages

示例:查找兼容Laravel 12的包

SearchPluginTool({
  text_search: "admin panel",
  laravel_compatibility: "12"
})
Returns packages compatible with Laravel 12.
SearchPluginTool({
  text_search: "admin panel",
  laravel_compatibility: "12"
})
返回兼容Laravel 12的包。

Example: Get Package Details

示例:获取包详情

GetPluginDetailsTool({
  package: "spatie/laravel-permission",
  include_versions: true
})
Returns:
  • Health score and last activity
  • Laravel/PHP version support
  • Vendor reputation (risk score)
  • Version history
  • Brief description
GetPluginDetailsTool({
  package: "spatie/laravel-permission",
  include_versions: true
})
返回:
  • 健康评分和最近活动时间
  • Laravel/PHP版本支持情况
  • 供应商信誉(风险评分)
  • 版本历史
  • 简要描述

Example: Find Packages by Vendor

示例:按供应商查找包

SearchPluginTool({
  vendor_filter: "spatie",
  health_score: "Healthy"
})
Returns all healthy packages from vendor "spatie".

SearchPluginTool({
  vendor_filter: "spatie",
  health_score: "Healthy"
})
返回供应商"spatie"发布的所有健康状态的包。

Filtering Best Practices

筛选最佳实践

By Health Score

按健康评分筛选

Health BandMeaning
Healthy
Active maintenance, recent updates
Medium
Occasional updates, may need attention
Unhealthy
Abandoned or infrequently maintained
Unrated
Not yet assessed
Recommendation: Prefer
Healthy
packages for production applications.
健康等级含义
Healthy
活跃维护,近期有更新
Medium
偶尔更新,可能需要注意
Unhealthy
已废弃或者维护频率极低
Unrated
尚未评估
建议:生产应用优先选择
Healthy
等级的包。

By Laravel Version

按Laravel版本筛选

VersionNotes
13
Latest Laravel
12
Current stable
11
Still widely used
10
Legacy but common
5
-
9
Deprecated
Recommendation: Match the target project's Laravel version.
版本说明
13
最新版Laravel
12
当前稳定版
11
仍被广泛使用
10
legacy版本但使用广泛
5
-
9
已弃用
建议:匹配目标项目的Laravel版本。

Combining Filters

组合筛选

typescript
// Find healthy, Laravel 12 compatible packages for permissions
SearchPluginTool({
  text_search: "permission",
  health_score: "Healthy",
  laravel_compatibility: "12"
})

typescript
// 查找兼容Laravel 12的健康的权限相关包
SearchPluginTool({
  text_search: "permission",
  health_score: "Healthy",
  laravel_compatibility: "12"
})

Response Interpretation

响应解读

Search Results

搜索结果

Each result includes:
  • Package name (e.g.
    spatie/laravel-permission
    )
  • Brief description
  • Health status indicator
  • Laravel version support badges
每条结果包含:
  • 包名(例如
    spatie/laravel-permission
  • 简要描述
  • 健康状态标识
  • Laravel版本支持徽章

Package Details

包详情

The detailed response includes:
  • Health Score: Numeric or band indicator
  • Last Activity: When the package was last updated
  • Laravel Support: Version compatibility matrix
  • PHP Support: PHP version compatibility
  • Risk Score: Vendor trust indicators
  • Version History: Recent release timeline

详情响应包含:
  • 健康评分:数值或等级标识
  • 最近活动:包的最后更新时间
  • Laravel支持:版本兼容性矩阵
  • PHP支持:PHP版本兼容性
  • 风险评分:供应商信任标识
  • 版本历史:近期发布时间线

Common Use Cases

常见使用场景

ScenarioRecommended Approach
"What package for auth?"Search "auth" with healthy filter
"Is spatie/package still maintained?"Get details, check health score
"Need Laravel 12 packages"Search with laravel_compatibility: "12"
"Find admin panel packages"Search "admin panel", review results
"Check vendor reputation"Search by vendor, check details

场景推荐处理方式
"用什么包实现认证?"搜索"auth"并添加健康度筛选
"spatie的这个包还在维护吗?"获取包详情,检查健康评分
"需要兼容Laravel 12的包"搜索时设置laravel_compatibility: "12"
"查找管理面板相关包"搜索"admin panel",查看返回结果
"检查供应商信誉"按供应商搜索,查看包详情

Best Practices

最佳实践

  1. Always filter by health — Use
    health_score: "Healthy"
    for production projects
  2. Match Laravel version — Always check
    laravel_compatibility
    matches the target project
  3. Check vendor reputation — Prefer packages from known vendors (spatie, laravel, etc.)
  4. Review before recommending — Use GetPluginDetailsTool for a comprehensive assessment
  5. No API key needed — The MCP is free, no authentication required

  1. 始终按健康度筛选——生产项目使用
    health_score: "Healthy"
    的包
  2. 匹配Laravel版本——始终检查
    laravel_compatibility
    是否匹配目标项目
  3. 检查供应商信誉——优先选择知名供应商(spatie、laravel等)发布的包
  4. 推荐前先核查——使用GetPluginDetailsTool进行全面评估
  5. 无需API密钥——该MCP完全免费,无需身份验证

Related Skills

相关技能

  • laravel-patterns
    — Laravel architecture and patterns
  • laravel-tdd
    — Test-driven development for Laravel
  • laravel-security
    — Laravel security best practices
  • documentation-lookup
    — General library documentation lookup (Context7)
  • laravel-patterns
    —— Laravel架构与设计模式
  • laravel-tdd
    —— Laravel测试驱动开发
  • laravel-security
    —— Laravel安全最佳实践
  • documentation-lookup
    —— 通用类库文档查询(Context7)