施用Sublime开发PHP扩展

WBOY
Release: 2016-06-13 10:56:49
Original
804 people have browsed it

使用Sublime开发PHP扩展

一、使用命令行编译VS项目

无需再用VS来进行开发PHP扩展。这样可以配合任意你喜欢的开发工具。

使用VS_ROOT\Common7\IDE\devenv.exe进行编译

具体使用方法可以使用devenv /?,输出帮助查看


@VS_ROOT:表示VS安装路径


二、在扩展目录中新建build.bat,并输入

devenv EXTENSION_NAME.sln /build 版本名
@EXTENSION_NAME:表示VS项目的主文件
@版本名:例如DEBUG、Release_TS或Release_NTS

三、新建Sublime构建系统(Build System)


输入:
{
     "cmd": ["build.bat"],
     "working_dir": "${file_path}",
     "encoding": "gb2312"
}
然后,保存构建系统名称为 PhpExtension-Mysql.sublime-build

四、将PHP扩展文件夹建立为Sublime项目

1.选择PHP扩展所在路径。

例如:E:\php-sdk\php54dev\vc9\x86\php-5.4.5\ext\my_mysql
此时能看到左侧已经出现PHP扩展的项目。

现在要编译扩展将会十分简单:ctrl+B。




五、AutoCompelete,帮助提示PHP内核中的API

安装alternative_autocompletion插件.
现在你可以开发你想要的扩展了。

1楼h2681957904昨天 09:12
很不错啊 谢谢分享
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!