rephactor is an excellent PHP refactoring tool_PHP tutorial
The PHP framework can be a single entry, completely object-oriented, completely class-based MVC pattern. However, we are faced with a large amount of old code, or even new code, which is not necessarily fully compliant with object-oriented principles and design patterns. Small applications are fine. But if you face large-scale applications, it must be a big pain! !
What to do? Many people will always face this, and the PHP code needs to be refactored. (Of course, if you understand what I’m saying, you must have read 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 reconstruction! This is inevitable. But how can this pain be made lighter?
Refactoring tools are a must. Fortunately, there is now a refactoring tool for PHP - rephactor. It is indeed an excellent tool. (Of course, you must remember that there has never been a completely automated refactoring tool. Machines can never replace the human brain. The goal of all refactorings and every step still requires you to follow "Refactoring - Improving Existing Code". The book "Design" explains how to do it)
So: What does rephactor provide us?
- Ensure reversibility of refactoring - once a problem is discovered, the code is reversible and can be traced back to the previous version.
- Find and replace function - ordinary search and replace, method renaming, class renaming, regular expression pattern replacement.
- After all operations are completed, they are tested based on SimpleTest Aperiplus and the test coverage is guaranteed.
- Integrate Phemto to ensure class dependency testing.
Of course, it has some limitations and can only run on LINUX operating system, and only supports PHP5.2
Are you interested? With it, your refactoring will be greatly accelerated, and it is guaranteed that no new BUG will appear.
Official website: http://rephactor.sourceforge.net/
Why not install one and give it a try?

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











In the cryptocurrency market, choosing a reliable trading platform is crucial. As a world-renowned digital asset exchange, the OK trading platform has attracted a large number of novice users in mainland China. This guide will introduce in detail how to register and use it on the OK trading platform to help novice users get started quickly.

Go uses the "strings" package for string operations. 1) Use strings.Join function to splice strings. 2) Use the strings.Contains function to find substrings. 3) Use the strings.Replace function to replace strings. These functions are efficient and easy to use and are suitable for various string processing tasks.

PHPisusedforsendingemailsduetoitsintegrationwithservermailservicesandexternalSMTPproviders,automatingnotificationsandmarketingcampaigns.1)SetupyourPHPenvironmentwithawebserverandPHP,ensuringthemailfunctionisenabled.2)UseabasicscriptwithPHP'smailfunct

Ranking of the top ten cryptocurrency exchanges in the currency circle: 1. Binance: Leading the world, providing efficient trading and a variety of financial products. 2. OKX: It is innovative and diverse, supporting a variety of transaction types. 3. Huobi: Stable and reliable, with high-quality service. 4. Coinbase: Be friendly for beginners and simple interface. 5. Kraken: The first choice for professional traders, with powerful tools. 6. Bitfinex: efficient trading, rich trading pairs. 7. Bittrex: Safety compliance, regulatory cooperation. 8. Poloniex and so on.

Sending mail using PHP and SMTP can be achieved through the PHPMailer library. 1) Install and configure PHPMailer, 2) Set SMTP server details, 3) Define the email content, 4) Send emails and handle errors. Use this method to ensure the reliability and security of emails.

ToimprovePHPapplicationspeed,followthesesteps:1)EnableopcodecachingwithAPCutoreducescriptexecutiontime.2)ImplementdatabasequerycachingusingPDOtominimizedatabasehits.3)UseHTTP/2tomultiplexrequestsandreduceconnectionoverhead.4)Limitsessionusagebyclosin

Binance, as the world's leading cryptocurrency trading platform, provides a variety of ways for users to trade and manage assets easily. Among them, Binance Mobile APP is one of the tools chosen by many users. The following details the download and use of Binance's official Android APP.

The world's leading cryptocurrency trading platform is famous for its efficient, secure and diverse trading services. Whether you are an experienced trader or a newbie into the cryptocurrency market, Binance has the tools and resources you need. Through Binance web version, users can easily access the trading platform without downloading any applications and conduct trading operations directly through the browser. This article will introduce in detail how to enter the Binance Binance Exchange web version and provide some practical trading tips and precautions.
