Use Sublime to develop PHP extensions I. use command line to compile VS projects without using VS for PHP extension development. This can be used with any development tool you like. Use VS_ROOT \ Common7 \ IDE \ devenv.exe to compile and use devenv /?, Output help to view PHP extensions developed using Sublime
1. use command line to compile VS projects without using VS to develop PHP extensions. This can be used with any development tool you like. Use VS_ROOT \ Common7 \ IDE \ devenv.exe for compilation
You can use devenv /?, View output help
@ VS_ROOT: VS Installation Path
2. create build. bat in the extension directory, and enter devenv EXTENSION_NAME.sln/build version name @ EXTENSION_NAME: the main file @ version name of the VS project, such as DEBUG, Release_TS, or release_ets.
3. create a Sublime Build System)
Input :{
"Cmd": ["build. bat"],
"Working_dir": "$ {file_path }",
"Encoding": "gb2312"
}
Then, save the build system name as PhpExtension-Mysql.sublime-build
4. create the PHP Extension folder as the Sublime Project 1. select the PHP extension path.
For example: E: \ php-sdk \ php54dev \ vc9 \ x86 \ php-5.4.5 \ ext \ my_mysql now you can see the PHP extension project on the left.
Now it is very easy to compile the extension: ctrl + B.
5. AutoCompelete, which helps prompt the PHP kernel to install the alternative_autocompletion plug-in by using the API. now you can develop the extension you want.
-
1 floor h2681957904 yesterday
-
Great. thank you for sharing.