revolution/laravel-boost-phpstorm-copilot 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

revolution/laravel-boost-phpstorm-copilot

Composer 安装命令:

composer require revolution/laravel-boost-phpstorm-copilot

包简介

Laravel Boost Custom Agent for PhpStorm with GitHub Copilot plugin

README 文档

README

tests

Ask DeepWiki

Docs: English Japanese

Requirements

Suggest

Supported Platforms

  • macOS
  • Windows (Native Windows)
  • Linux

Laravel Sail

It also supports Laravel Sail. Before use, start it with vendor/bin/sail up -d.

WSL (Windows Subsystem for Linux)

This package supports WSL environments where PhpStorm runs on native Windows and PHP runs in WSL. This is a common development setup that provides Windows IDE features with Linux development environment.

Requirements for WSL

  • wslu package must be installed in WSL
  • Check if installed: wslvar -v
  • Install if needed: sudo apt install wslu
  • Ensure your user profile is on the C drive (default location)
How it works
  1. Detection: Automatically detects WSL environment by checking WSL_DISTRO_NAME environment variable
  2. Path Resolution: Uses wslvar LOCALAPPDATA to get Windows AppData\Local path (e.g., C:\Users\YourUsername\AppData\Local)
  3. File Writing: Writes MCP config to Windows side via PowerShell commands
    • Creates temporary file in Windows %TEMP% directory
    • Uses Base64 encoding to safely transfer JSON content
    • Copies to final location: %LOCALAPPDATA%\github-copilot\intellij\mcp.json
  4. Path Handling: Converts WSL paths to Windows paths for absolute command and artisan paths
Troubleshooting WSL
  • Ensure wslu is installed and wslvar command works
  • Check that PowerShell is accessible from WSL with powershell.exe -Command "Write-Output 'test'"
  • Verify Windows LOCALAPPDATA path with wslvar LOCALAPPDATA (should return C:\Users\YourUsername\AppData\Local)
  • If MCP config file is not created, check Windows directory permissions
  • Ensure your user profile is on the C drive (default location)
  • [error] WSL Interoperability is disabled. Please enable it before using WSL. If you see this error, enable WSL Interop by adding the following binfmt configuration:
echo ":WSLInterop:M::MZ::/init:PF" | sudo tee /usr/lib/binfmt.d/WSLInterop.conf
sudo systemctl restart systemd-binfmt

Remote Development

Running PhpStorm within WSL is not supported.

Because it is not possible to distinguish between a "Windows version of PhpStorm and WSL environment" and a "PhpStorm remote development environment with WSL". The remote development environment is the same as Linux, so if you really want to use it, please configure the MCP file manually. ~/.config/github-copilot/intellij/mcp.json

{
  "servers": {
    "laravel-boost": {
      "command": "/absolute/path/to/php",
      "args": ["/absolute/path/to/laravel/artisan", "boost:mcp"]
    }
  }
}

Recommendation for WSL

Consider using laravel-boost-copilot-cli, which allows you to use a project-level MCP configuration file.

Testbench for Package Developers

Not supported. Please use laravel-boost-copilot-cli instead.

Installation

composer require revolution/laravel-boost-phpstorm-copilot --dev

Usage

When you run the Laravel Boost installation command within your Laravel project, you'll see a PhpStorm with GitHub Copilot item added to the list.

  • First, you will see Which Boost features would you like to configure?. The files will be installed depending on the features you select.
    • AI Guidelines: .github/instructions/laravel-boost.instructions.md
    • Agent Skills: .github/skills
    • Boost MCP Server Configuration: A location appropriate for your environment.
  • Next, you will see Which AI agents would you like to configure?. Select PhpStorm with GitHub Copilot for the AI agent.
php artisan boost:install

Note

DO NOT select PhpStorm, it's actually PhpStorm Junie

Important

With PhpStorm and GitHub Copilot plugin, the MCP configuration file is stored in a system-wide location. Therefore, you need to run the boost:install command to update the configuration file whenever you switch Laravel projects. The configuration file contains the absolute path to your Laravel project.

php artisan boost:install --guidelines --skills --mcp --no-interaction

In boost 1.8 and later, the boost:update command does not update the MCP configuration file.

MCP Configuration File Location by OS

  • macOS, Linux: ~/.config/github-copilot/intellij/mcp.json
  • Windows: %LOCALAPPDATA%\github-copilot\intellij\mcp.json

License

MIT

revolution/laravel-boost-phpstorm-copilot 适用场景与选型建议

revolution/laravel-boost-phpstorm-copilot 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 9.23k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2025 年 11 月 01 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「laravel」 「phpstorm」 「boost」 「github-copilot」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 revolution/laravel-boost-phpstorm-copilot 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 revolution/laravel-boost-phpstorm-copilot 我们能提供哪些服务?
定制开发 / 二次开发

基于 revolution/laravel-boost-phpstorm-copilot 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 9.23k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 28
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-01