Five excellent PHP code reconstruction tools and five php code reconstruction tools are recommended.

Source: Internet
Author: User
Tags php development environment php editor

Five excellent PHP code reconstruction tools and five php code reconstruction tools are recommended.

In software engineering, refactoring Code usually refers to modifying the source code without changing the external behavior of the Code. Software refactoring requires the help of tools, and the refactoring tool can modify the code and modify all the places where the code is referenced. This article collects five outstanding PHP code refactoring tools to help you complete better projects.

  1. Rephactor

Rephactor is a command line reconstruction tool, which is an automated tool that allows developers to modify source code in different code libraries in a concise way.

Main functions:

  • Ensure that refactoring is reversible-once a problem is found, the code is reversible and can be traced back to the previous version.
  • Find and replace functions-common search replacement, method rename, class rename, and regular expression mode replacement.
  • After all the operations are completed, the test is based on SimpleTest Aperiplus and the test coverage is ensured.
  • Integrate Phemto to ensure the test of class relevance.

  2. Scisr

Scisr is a refactoring tool written in PHP. The project is hosted on GitHub. Issued under the GPL license.

Usage:

Class rename:

$ scisr rename-class OldName NewName [files]

Modification method:

$ scisr rename-method OwningClassName oldMethodName newMethodName [files]

File rename:

$ scisr rename-file old/file_name new/dir/new_file_name [files]

Rename classes and files:

$ scisr rename-class-file OldClassName NewClassName [files]

  3. PHP Refactoring Browser

This is a PHP code refactoring tool that describes the refactoring steps by generating diffs to avoid simple errors in the refactoring process. This tool is great. The project is hosted on GitHub.

User Library:

  • PHP Parser by Nikic
  • PHP Token Reflection from Ond into ejj Ne limit p

Refactoring browser data mainly includes the following aspects:

  • Patch: allows you to create patches based on file changes;
  • Refactoring-contains the actual reconstruction domain and the appropriate third-party library;
  • Set-reliably add set semantics based on PHP arrays. Currently, it contains a set of types.

  4. PhpStorm

PhpStorm is a php ide rich application developed by JetBrains and supports refactoring. PhpStorm can help users adjust their encoding at any time, run unit tests, or provide visual debugging functions.

PhpStorm 7 is released. The new version supports PHP5.5, improved PHP syntax coloring performance, Vagrant, SSH Control & remote tools, Drupal & PHP frameworks, and improved debugging and testing performance.

Main features of PhpStorm:

  • Intelligent PHP encoding editor;
  • Code Quality Analysis;
  • Support debugging/testing;
  • Supports HTML, CSS, and JavaScript editors;
  • Supports cross-platform.

  5. Zend Studio

Zend Studio is an integrated PHP development environment developed by Zend Technologies. Supports HTML and JS labels, but only supports debugging in PHP.

Main features:

  • Provides powerful professional editing and debugging tools;
  • Supports PHP syntax highlighting, automatic syntax filling, automatic syntax reduction, and code copy;
  • Supports bookmarks;
  • Built-in powerful PHP code debugging tool;
  • Supports both local and remote debugging modes and multiple advanced debugging functions.

We recommend a php editor with tips

We recommend that you use the new ide for phpstorm in the last year to prompt that svn reconstruction is very powerful. Well, zend studio 5 is also good, and the automatic prompt is fast, zend studio for Eclipse is inefficient ~

In php5, how to reconstruct methods in class

Php5 will first look for function _ construct () as the constructor. If the constructor cannot be found, it will continue to query the function with the same name as the constructor.

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.