让 PHP 扩展支持 IDE 代码提示,通过在 composer.json 配置,可以支持所有扩展,包括但不限于 Swoole、Redis 等
MIT License
让 PHP 扩展支持 IDE 代码提示,通过在 composer.json 配置,可以支持所有扩展,包括但不限于 Swoole、Redis 等
技术支持群: 17916227,如有问题可以及时解答和修复。
在项目中引入yurunsoft/ide-helper
,然后在composer.json
的extra
中配置。
如下所示,可以生成 swoole
、redis
的代码提示帮助文件。
支持所有 PHP 扩展,前提是你的环境中有安装。
{
"require-dev": {
"yurunsoft/ide-helper": "~1.0"
},
"extra": {
"ide-helper": {
"list": [
"swoole",
"redis"
]
}
}
}
最后执行composer update
即可。