Original article address: Comparison of seven popular PHP ides
Discover all the purposes of the integrated development environment (IDE) and compare the costs and advantages of seven popular ides.
Compile the PHP SeriesArticleIt gave me a deeper understanding of the PHP developer world. Me and many PHPProgramI was surprised that only a few people use IDE. Most programmers use text editors, such as Notepad, emacs, or Vim on Microsoft Windows.
The text editors I mentioned (and I didn't mention) are all good-I don't want to discuss which editor is better. However, if you do not use a text editorCodeHave deeper insights. Almost everyone regards the PHP project as just a file directory (this is a one-sided view ). Now let me take you into the world of IDE, show you what IDE can -- or should -- bring to you, and introduce you to the seven most popular ides.
What is ide?
In short, IDE provides an all-in-one service for coding. IDE includes an editor that allows you to edit code, debug code, view code in a browser (usually embedded), and check in and out source code control. To support these features, IDE has a set of features that are not found in basic editors (such as NotePad or Vim. Of course, you can use the extended editor to implement these functions, but ide includes all of these functions in a streamlined package-all of which are pre-configured:
-
Project
-
A key feature of IDE is that it regards a PHP application as a project, not just a group of files. This concept --
Project-- Maintain additional information, such as source code control configuration, database settings for debugging, and location of a key directory.
-
Debugging
-
Another convenient feature is integration debugging. With this function, you can set breakpoints in the editor. When the PHP interpreter executes this script, it will stop. From the breakpoint, you can check the value of the local variable and diagnose the problem in the code. Can be used in the code
Echo
Statement to check the value or use the error log to obtain the value of the variable.
-
Code intelligence
-
PHP is a very rule Programming Language, Which means that it follows a simple pattern. These modes not only make the code easy to write, but also make it easy for the IDE to check the code in the project. In addition, they can help you write programs by displaying the check results. For example, if a project named
Myclass
Class.
New
IDE will immediately provide
Myclass
As an option dialog box. When you use an object of that type, IDE displays its available methods and instance variables. When you start typing a Function Command, IDE displays its available parameters. To be fair, this is the primary reason for using ide rather than text editors. This code intelligence can effectively reduce the number of incorrect class names, method names, and parameters.
-
Class View
-
Another function of the Code Intelligent engine in IDE is that IDE can generate projects.
Class View. Instead of displaying files, the system displays different classes that have been defined, regardless of their files. When you click a class, the editor accesses the corresponding file and displays the corresponding class, method, or instance variable. This is a good navigation method in large projects.
-
Multi-language support
-
Each ide mentioned here supports not only Php but also related language sets: JavaScript, Structured Query Language (SQL), Hypertext Markup Language (HTML), and Cascading Style Sheets (CSS ). Because HTML and CSS are relatively simple, IDE provides the best support for them. The support for JavaScript often highlights the syntax, but the support is better than not.
-
Source code control
-
All the ides evaluated here support some connections to the source code control system, allowing you to maintain the file version in the project over time. You can mark the special version of the file as the release version, so that it can be restored when changes need to be revoked. It is critical to use the source code control system in a team environment, even for personal use. When the disk crashes or the customer suddenly wants the previous version instead of the current version, a good source code control system can play a role. Most ides support Concurrent Version System (CVS) and subversion, which are both open-source control systems. One ide supports perforce, a commercial source code control system.
-
FTP/SFTP Integration
-
One function related to source code control is to use ftp for the latest code on the server. This is much easier than using an FTP client or package a file and sending it to the server and then unpackage the package.
-
Database navigation
-
A non-basic but useful feature is database navigation. This feature allows you to browse databases accessed by applications, find tables and field names, and return query results. Some systems can even automatically write some database access code.
-
Integrated Web Browser
-
Some ides support the integration of Web browsers. You can directly navigate to the page that is being edited using the specified additional parameters. This browser can be hosted in the IDE or called externally. Honestly, I don't like to integrate browsers very much, because I don't mind switching between two independent applications, namely editing code and viewing results. But I know it does have a certain effect, but you don't have to use it.
-
Fragment
-
The last feature I found in all these ides is support for the entire section and custom code snippets.
FragmentIs a small part of the code to complete small tasks (such as running regular expressions in some input, connecting to the database, and querying the database.
The above summarizes the core features that can be expected from the purchased or open-source IDE. Next, we will introduce some popular ides, show some ide images, and explain their supported functions and their costs.
Eclipse
There are two plug-ins in the eclipse development platform that support PHP. The first PHP ide project is the eclipse foundation project, which means it is released within the scope of eclipse license and developed using eclipse foundation tools and methods.
Another is phpeclipse, which is developed independently. Because eclipse is used, these two plug-ins can run in three major operating systems: Windows, Linux, and Mac OS X. You can only download these two plug-ins (if eclipse is already used), or download the pre-fab version that contains all the required content.
Both plug-ins support core IDE features. It is especially powerful in code intelligence. It can pop up and display all required classes, methods, and parameter information as needed.
Figure 1 shows phpeclipse running on Mac OS X. On the left is the project view of the files in the project. The following is the Class View, showing all the defined classes. Code is in the middle. You can open multiple files on multiple tabs at the same time. The right side is the debugging and browsing panel. This is a common phpeclipse user interface.
Figure 1. phpeclipse on OS X
Figure 2 shows the PHP ide project plug-in from the eclipse Foundation.
Figure 2. php ide project on OS X
It does not matter if you cannot see the difference. These two plug-ins seem very similar, because they all rely on the eclipse platform to present code browsing and smart features. It is good to ensure consistency of the Eclipse plug-in GUI.
I have not found any plug-in that can lock you in an Eclipse project. You can often replace one plug-in with another. In my limited testing, I prefer the PHP ide project plug-in because I feel that it is better integrated and the performance of the Code intelligence feature seems faster. Try these two plug-ins to see which one you prefer.
The disadvantage of these two plug-ins is that the UI is not customized for PHP because eclipse can be used in almost all programming languages. As a result, Eclipse's terminology was somewhat different at first. If you are learning eclipse at the beginning, these plug-ins are more difficult to learn than other ides. However, if you already know eclipse, you can quickly get familiar with phpeclipse or PHP ide projects.
What are the biggest advantages of eclipse and these plug-ins? They are free and stable and reliable. Oh, are they free of charge?
Komodo
Next we will introduce the ActiveState Komodo IDE. This ide runs on Windows, Mac OS X, and Linux and supports common open-source languages such as Perl, PHP, and Ruby. The Code Intelligent engine is very reliable. It scans all language installations to find custom extensions, such as the pear module. In terms of projects, it supports integration with CVS, subversion, and perforce, and also allows direct code transfer to the Server FTP.
Figure 3 shows Komodo running on Windows. Class View on the left and project view on the right. The main part in the middle is the code view. Below are the breakpoint and command output for debugging. For all these systems, you can customize the UI as needed.
Figure 3. Komodo running on Windows
Komodo is a commercial product. When I write this article, this ide has two editions available: Personal Edition (US $29.95) and Professional Edition (US $299.95. One of its unique features is the regular expression debugger. Whether you are a newbie to regular expressions or have already begun to get involved in advanced regular expression features, this purchase investment is worthwhile.
Its disadvantage is that it does not have database integration (at least I did not find it), and I also encountered a small problem that the Code Intelligence does not always pop up when I want it. But in general, Komodo is also a robust, distinctive, and reliable php ide.
PHP designer
The PHP designer is not the same as other ides. Of course, it supports limited code intelligence. However, it focuses more on the design of PHP Web applications. This is evident in its integrated browser, which uses a pixel ruler to help locate elements on the page.
Figure 4 shows the running PHP designer.
Figure 4. php designer on Windows
The PHP code intelligence and debugging features in the PHP designer are not very significant, but the code intelligence support for HTML, CSS, and JavaScript is relatively stronger. The PHP designer is between the programmer's ide (mainly focused on code) and Adobe Dreamweaver (more focused on design. If you are looking for such intermediate products, the PHP designer is worth considering, because IDE is free for personal use, and its Professional Edition only requires US $55.
Phped
Nusphere is only used for Windows phped. All the IDE features described here are the most abundant. It has a good internal debugger and stores the debugging toolbar in Microsoft Internet Explorer for easier access to page debugging.
Figure 5 shows how to use phped to develop PHP applications in windows. On the far left is the project file view. The Class View is next to the right, and the Code view is on the right. Below is the output status. You may have noticed that all these ides follow the same basic design style.
Figure 5. phped in Windows
Highlights of phped include a great debugger, excellent database access, good code intelligence, and integrated PHP help. Phped prices range from basic version US $119 to professional version US $495. The trial version is also available.
Phpedit
Phpedit from waterproof software seems to be applied to the Microsoft msdev environment of PHP-this is a good thing. Phpedit is only used for Windows IDE and is easy to set. It even has a PHP version. It does well in PHP, CSS, and HTML code intelligence, but does not provide support for JavaScript code intelligence. Figure 6 shows the running phpedit.
Figure 6. phpedit in Windows
To facilitate deployment, phpedit can be connected to CVS and subversion, as well as FTP and its proprietary ezdeployment system. In addition to the Code intelligence feature, this ide provides an excellent sample code template library for accelerated development. You can also add content to the library. You can use the phpedit evaluation version for free. To get the official version, you need US $89.
Zend Studio
Finally, let's talk about Zend studio, which is listed at the end just because it usesZ. It may be your first thought. Why? Because it comes from the Zend-PHP team behind the scenes. And it is really good. It runs on three major systems: Windows, Mac OS X, and Linux. It also provides everything you need: PhP V4, PHP V5, and so on. It takes a long time to download, but it is very worthwhile.
Zend studio is the best IDE. It provides all the code intelligence features that you want to have in the built-in library and custom code. It also has excellent debugging functions and is easy to set. To put the code in the repository (repository), Zend studio connects to CVS and subversion. To put the code on the server, you can use integrated FTP. Zend studio is ideal for Macintosh, as shown in figure 7.
Figure 7. Zend studio on Mac
In other ides, code snippets are built in to make code compilation easier. This ide also directly integrates databases to provide available tables and fields.
The standard version of Zend studio requires US $99, and the professional version requires US $299. Some of the features I mentioned here are not included in the standard version. Zend studio trial version is free of charge.
Conclusion
There are a lot of excellent ides to choose from-some of them are even free-you can choose a trial, if you are a professional, it should be more like this. You may have to pay for your company or individual consultants, or you may have to pay for the necessary items. If you want to useEcho
When debugging code is compared with the time spent using the Integrated debugger, the purchase price of IDE is definitely worth the money.
References
Learning
- For more information, see the original article on the developerworks global site.
- For PHP developers, php.net is a good resource.
- For a series of developerworks tutorials on PHP programming, see "Learning PHP.
- Visit the PHP project resources on IBM developerworks to learn more about PhP.
- Stay tuned to developerworks technical events and network broadcasts.
- Check out recent conferences, exhibitions, network broadcasts and other activities for IBM open source code developers to be held globally.
- Visit the developerworks open source area to get a wide range of how-to information, tools, and project updates, help you develop with open source technology, and integrate it with IBM products.
- To listen to interesting interviews and discussions with software developers, visit the developerworks podcasts.
Obtain products and technologies
- Obtain Komodo from ActiveState.
- Phpdesigner is a product of mpsoftware.
- Phpeclipse is a free PHP Eclipse plug-in that can be obtained from phpeclipse.net.
- Nusphere is the creator of phped.
- Phpedit can be obtained from waterproof software.
- The PHP ide Project is a free Eclipse plug-in for PHP and can be obtained from the eclipse Foundation.
- Zend studio and some other useful PHP products can be obtained from zend.com.
- Please use IBM trial software to improve your next open source code development project, which can be downloaded or obtained through a DVD.
Discussion
- Join developerworks by participating in developerworks blogsCommunity.
About the author
|
|
|
Jack herrington, an engineer with more than 20 years of experience, is now the editor-in-chief of the Code Generation Network. He wrote the book code generation in action . You can contact him through the jack_d_herrington@codegeneration.net. |