rephactor--excellent PHP re-built tools

Source: Internet
Author: User
Tags php framework
rephactor--Excellent PHP refactoring tools

??????? Starting with PHP5, it provides powerful object-oriented functionality. So that PHP can be fully programmed according to the design pattern. The PHP framework can be a single-entry, fully object-oriented, fully class-based MVC pattern. However, we are faced with a lot of old code, or even new code, does not exactly conform to the object-oriented principle, conforms to the design pattern. Small application is no harm. But if the face of large-scale applications, it is bound to be a big pain!!

??????? What to do? A lot of people are always faced with this, and the PHP code needs to be refactored. (Of course, if you can understand what I'm saying, you must have seen the book "Refactoring-improving the design of existing code")

??????? Look at this link: http://zh-cn.w3support.net/index.php?db=so&id=100876? We can understand the pain of refactoring! This is inevitable. But how can this pain be made lighter?

??????? Refactoring tools are required. Fortunately, now there really is PHP refactoring tool--rephactor. It is indeed a very good tool. (Of course, you have to remember that there is never a completely automated refactoring tool, machines can never replace the human brain, all the refactoring goals, and every step is still to be done in accordance with the "refactoring-improve the design of the existing code" in the book you explain the practice to do! )

??????? So: What does Rephactor offer us?

    1. Ensure the reversibility of the refactoring-once the problem is found, the code is reversible and can be traced back to the previous version.
    2. Find and replace function--normal find Replace, method rename, class rename, regular expression pattern substitution.
    3. After all operations are completed, the tests are based on simpletest Aperiplus and the coverage of the tests is guaranteed.
    4. Integrate Phemto to ensure class relevance testing.

??????? Of course, it has some limitations and only runs on the Linux operating system, and only supports PHP5.2

??????? Are you interested? With it, your refactoring will be much faster and there will be no new bugs to be guaranteed.

??????? Official website: http://rephactor.sourceforge.net/

??????? Why not install one and try it?

?

?

?

?

  • 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.