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. You can use vs_rootcommon7idedevenv.exe to compile and use devenv ?, Output help to view @ VS_ROOT: VS Installation Path 2. create build. bat in the extension directory, and enter use Sublime to develop PHP extension
1. use command line to compile VS projects
You do not need to use 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 of the VS project.
@ Version name: for example, 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 a PHP Extension folder as a Sublime project
1. select the PHP extension path.
E: \ php-sdk \ php54dev \ vc9 \ x86 \ php-5.4.5 \ ext \ my_mysql
The PHP extension project is displayed on the left.
Now it is very easy to compile the extension: ctrl + B.
V. AutoCompelete, which helps prompt the API in the PHP kernel
Install the alternative_autocompletion plug-in.
Now you can develop the extensions you want.
-
1 floor h2681957904 yesterday
-
Great. thank you for sharing.