亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

How to clean your PHP code

Read(30692) update time(2022-04-13)

This course refers to the software engineer's principles from Robert C. Martin's Clean Code book and applies to PHP. This is not a style guide. This is a guide to developing readable, reusable, and reconfigurable PHP software. Not all of the principles here must be followed, and few are even universally accepted. Although these are just guidelines, they are all summarized by the Clean Code authors over the years.


This article is inspired by clean-code-javascript

Notes

Although many developers are still using PHP5, the running environment of most of the examples in this article requires PHP 7.1.

Translation instructions

The translation is 100% complete and last updated on 2017-12-25. This article is translated by php-cpm based on the yangweijie version of clean-code-php and synchronizes a large amount of original content.

The original text is updated frequently. My translation method is to compare line by line directly using the text comparison tool. Prioritize ensuring that the text content is up to date, and then gradually improve the translation quality.

If you encounter various problems such as invalid links, outdated content, incorrect use of terminology, and other translation errors during the reading process, you are welcome to actively submit a PR.