Apply Sublime to develop PHP extensions

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.