Php development and learning highlights + 12 development tools

Source: Internet
Author: User
Tags php code generator php debugger php development environment php framework php online php source code php template zend framework

The knowledge in grammar structure textbooks is different from that in actual programming. Real knowledge must be obtained in actual development. Every PHP developer should be familiar with the following five things before developing a web application:
1. Framework

The framework is one of the most important issues in PHP development. There are many ways to develop Web applications using PHP. There are many open-source frameworks that can be used to help rapid development and maintain higher consistency and effectiveness. The better frameworks include CakePHP, symfony, and codeigniter. Many frameworks also follow the MVC design pattern. If you have worked in this pattern, you will be familiar with it. After a while, you can even create a framework based on your own needs.

2. template engine

If you are not using a framework to execute a specific design pattern, you want to use the template engine. Whether you create or use an existing template (such as smarty) by yourself, the template engine will make your logic code independent from the HTML page (and related CSS/JS ). This greatly simplifies your code, makes modifications to the entire program fast and simple, and makes it easier for non-developers to modify your program.

3. code reuse

As I mentioned before, PHP is the best language for code reuse. From many small and medium documents to the entire database class, PHP developers can freely choose to reuse existing code when needed. In fact, you can build the entire application without writing a line of code.

4. Do not re-start to find some items

Obviously, only a few PHP developers know that PHP has many advantages. Forget the new library or complex code routines-first look at the PHP manual. For example, have you ever heard of number_format (), parse_url (), wordwrap (), or bbcode_parse ()? Take a look at the entire function reference, select a category, and you will surely find something.

5. IRC is a pleasant task.

When you have a complicated problem that cannot be solved, you can go to IRC. Many experienced developers are fascinated by the unofficial PHP support channel. You need an IRC client. If you use Firefox, chatzilla is a good plug-in. When you need help, stick your code with IRC: // irc.freenode.net/php as the header. Post your questions and wait patiently. Some kind of enthusiastic people (or multiple) will give you answers. When you get the answer, consider other questions that need help. For PHP's huge function library, no one is a battle; on IRC, gathering everyone's knowledge can solve any problem.
 
Appendix:

Famous foreign website smashingmagazine has brought 50 excellent and practical PHP tools, including PHP code testing, optimization tools, and image processing tools, and Software Configuration Management tools necessary for the development process. I believe these tools can make PHP users feel at ease! 50 excellent and practical PHP tools:
I. PHP code debugging tool webgrind supports PHP 5 perfectly. It is fast and easy to install and can run across multiple platforms. Xdebug is a widely used PHP code debugging tool. It provides a large number of tools to help you identify potential bugs in the program, and it is supported by many php development tools, it is inherited from these development tools as specialized test tools, such as phpeclipse and phpdesigner. Gubed PHP debugger dbg php_debug is an open-source PHP code debugging tool that provides useful information in many ways to help you eliminate problems in the code, it also integrates performance testing tools, such as PHP code execution time and SQL statement execution time. Php_dyn macgdbp

2. PHP code testing and optimization tool phpunit: A JUnit component testing tool based on PHP 5. Simpletest is a highly integrated PHP code testing tool. Selenium: A professional PHP code testing tool for fully automated Web sites, focusing on testing UI input and output data. Php_codesniffer dbug is a PHP tool that focuses on test classes, objects, arrays, and XML files. PHP profile class

Iii. Document Management Tool phpjavasentor: A famous PHP code management tool that supports PHP source code output to documents in HTML, PDF, CHM, and other formats. PHP Dox

Iv. Security Tools securimage: An easy-to-use image format Verification Code tool. Scavenger: a real-time attack detection tool. PHP-IDS: an illegal intrusion detection tool. Pixy: a dangerous code check tool that detects potentially damaging code submitted by programmers themselves or external information.

V. graphic image processing tools PHP/SWF charts pchart-a chart-drawing PHP library wideimage magickwand for PHP

6. PHP code format processing tools these tools can help you process the source code in the appropriate format as needed, such as code indentation and segmentation. The code looks clearly structured and is easy to reuse and manage. Php_beautifier phpcodebeautifier geshi-generic syntax highlighter

7. There is an important part in Software Configuration Management of configuration management tools (Version Control)-Maintenance of the code version library, which is conducive to cross-development, maintenance of the same version and later version backtracking, this is especially important for large projects. The following two tools can help you well. Phing xinc

8. php extension, tool set, and class library support simplepie. This tool can be used for php rss parsing. HTML purifier: this tool can be used to remove all malicious code (XSS) and ensure that your pages comply with W3C standards. Tcpdf: A PhP5 function package that can be used to quickly generate PDF files. Htmlsql: a set of PHP classes that allow you to conveniently search HTML and XML content using SQL statements. The greatest PHP snippet file ever (using quicktext for notepad ++) Creole: this tool is written in PHP 5 and is a meaningful oo layer, it contains a wide range of JDBC-based APIs. Phplinq: it helps you easily operate PHP arrays using SQL syntax, avoid improper array initialization and overflow phpmathpublisher. This tool helps you easily create similar complex mathematical expressions using scripting languages. PhpMyAdmin: a familiar SQL management tool that provides a complete GUI environment to help you operate MySQL. Phpexcel: A group of MS Office Excel documents to generate class libraries. Phormer: lightweight PHP album. Xajax PHP Class Library: open-source PHP class library, which helps you easily implement a variety of Ajax effects. PHP user class: PHP user management library support. PHP-GTK: Use PHP-GTK to help you easily create PHP applications with beautiful GUI.

9. php online tools and resources Minify! This tool is developed using PhP5 and is used to merge and compress JS/CSS files. After the compress is merged, the client cache can be optimized through HTTP gzip/deflate and related headers. Http_staticmerger: the CSS and Java script files are automatically merged ". PHP Object generator is a PHP code generator that generates concise and testable object-oriented code for your PhP4/PhP5 application. Gotapi/PHP this tool can help you easily create widgets. Koders: Open Source Code Search Component. PECL: This PHP extension library contains information about different libraries provided by the php development team.

10. Firefox extension firephp is a firebug-based extension, it can be used to conveniently output PHP debugging information in the firebug console without affecting the normal operation of the PHP program. Phplangeditor is a PHP function library interpretation tool. PHP lookup: a built-in search bar to help you quickly find the referenced PHP syntax. PHP manual search: a convenient search bar for official PHP documents from your web browser. For more extended applications, refer to [group chart] 15 Web development tools based on browser extension

11. The PHP framework supports the dwoo: PhP5 template engine. Codeigniter is a PHP framework for agile software development. Yii framework: a high-performance component-based PHP framework. Netbeans: a powerful php extension framework supporting set with a complete GUI. It becomes a powerful php development tool. Solar symfony: an open-source PHP Web framework that accelerates the creation and maintenance of web applications. Pear propel: An or ing framework for PhP5. It allows you to use an object instead of SQL to read and write rows in a database table. {Macro} template engine Zend framework: it is an open-source PhP5 development framework that can be used to develop web programs and services. Qcodo is a framework suitable for agile development based on PhP5 using MVC Architecture and crud code generation function. Sajax: sajax is a modular method for making Ajax applications. Through predefined and dynamic function calls, the development process of applications is smoother. Smarty: Use PHP to implement the logic layer of the MVC development mode and the template engine of the presentation layer. CakePHP is an open-source PHP on Rails full-stack framework. Savant2: a set of PHP template engines that directly use PHP functions and impose reasonable restrictions. Phpspec: A simple PHP framework. Biweb: a set of the latest open-source frameworks designed for large-scale Web projects, which can undertake high load, high traffic, and easy shunting, maximize server performance, and integrate Seo, WAP, develop a web application recommendation framework for the most popular functions such as RSS.

12. php integrated development environment (IDE) and editor phpeclipse a powerful eclipse environment to develop PHP plug-ins. The main functions include PHP syntax analysis, debugging, and code formatting, outline View, code template customization, etc. Phped is an integrated php development environment in windows. Phpdesigner is a lightweight PHP integrated development tool. The code editor is particularly powerful and supports online preview. Zend studio is an excellent php development environment in eclipse and is suitable for developing RIAs applications with rich interfaces. Aptana PHP: an excellent open-source IDE development environment that works with Aptana Studio. PDT: a development tool framework designed to provide a fully functional PHP integrated development environment on the eclipse platform. Vs. php: as the name suggests, this plug-in allows us to develop PHP programs in Visual Studio. NET development tools, such as using vs. php to run ASAP applications. Phpedit: This ide tool provides powerful code editor support and provides common functions such as syntax highlighting, code prompting, code recognition, and code indentation, it also integrates the PHP debugger and a user help document generation tool.

Related Article

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.