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
Requirements
- PHP >= 8.3
- Laravel >= 12.x
- Laravel Boost >= 2.0
- GitHub Copilot plugin installed in PhpStorm
Suggest
- laravel-copilot-sdk Copilot SDK for Laravel
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
wslupackage 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
- Detection: Automatically detects WSL environment by checking
WSL_DISTRO_NAMEenvironment variable - Path Resolution: Uses
wslvar LOCALAPPDATAto get Windows AppData\Local path (e.g.,C:\Users\YourUsername\AppData\Local) - 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
- Creates temporary file in Windows
- Path Handling: Converts WSL paths to Windows paths for absolute command and artisan paths
Troubleshooting WSL
- Ensure
wsluis installed andwslvarcommand works - Check that PowerShell is accessible from WSL with
powershell.exe -Command "Write-Output 'test'" - Verify Windows LOCALAPPDATA path with
wslvar LOCALAPPDATA(should returnC:\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.mdAgent Skills:.github/skillsBoost MCP Server Configuration: A location appropriate for your environment.
- Next, you will see
Which AI agents would you like to configure?. SelectPhpStorm with GitHub Copilotfor 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 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 revolution/laravel-boost-phpstorm-copilot 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
The Cassandra php driver library IDE stubs which enables autocompletion in modern IDEs.
Spatie's Laravel & PHP coding guidelines for Laravel Boost
Spatie's coding guidelines as AI skills for Laravel Boost and skills.sh
PhpStorm meta data for expected arguments completion in Doctrine projects.
A symfony/console command for listing and introspecting AI skills files of a project.
Yii2 component stubs generator for Yii::$app
统计信息
- 总下载量: 9.23k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 28
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-01