Home

Awesome

clearPHP

Reference for writing clear PHP code

It is difficult to know when one's code is well written. There are recommendations for writing PHP code in the manual, from CS theories, peers review, and gut feeling. That makes a lot of rules.

The main goal of this document is to collect such rules, so as to have them all easy to read and select them for reviewing one's code. This is a reference document, in which anyone may look for ways to improve their code.

<a href="rules/README.md">Read the clearPHP rules</a>.

So Many Rules

There are obviously a lot of rules. And probably some will be added soon.

License

Unless stated otherwise, all content is licensed under the Creative Commons Attribution License.

A copy of the license is included in the repository.

Acknowledgements

ClearPHP was originally written by Damien Seguy. The following people have contributed to this project:

<!-- contributors --> <!-- contributors -->