Need help with php-coding-standard-generator?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

127 Stars 15 Forks Other 140 Commits 7 Opened issues


Create your own phpmd and phpcs.xml ruleset files and edit them in place. PHPMD is stable - PHPCS support is in alpha

Services available


Need anything else?

Contributors list

# 34,130
133 commits
# 276,486
2 commits
# 73,117
1 commit

The goal of this project is to provide an easy to use website that allows its users to create and adapt their PHP coding standards.

When it comes to coding standards it is not important which one you choose it is just important that you have one and everyone follows it!

To ease the usage of coding standards this site can help you create and/or understand ruleset.xml files for PHPMD and PHPCS.

When setting up a Continuous Integration environment it can be used complementary to to create the

files but of course works fine on its own with the command line versions of the respective tools and other Continuous Integration servers.


All contributions are very welcome. If you have questions feel free to find me on IRC ([email protected]) or on Twitter (@__edorian).

Rule updates

The rules the generator knows about are maintained in PMD-Style XML files.

To see if any rules are missing or need to be updated there is a helper utility in

 ~/php-coding-standard-generator/source master $ ./phpcsMapper 
Usage: ./phpcsMapper command 

Available commands: - list Prints all available sniffs and if it exists in sniffDocumentation [x], is incomplete [~], or is missing [ ]. - create Create empty xml structure for the sniff group. - todo Prints a list of all empty description and examples tags.

These basic commands hopefully make it easy to get stared.

Make sure to update the projects for which the rules are generated beforehand using:

git submodule foreach git pull origin master


The tool currently looks horrible. If you want to improve it please get in touch, it'd be great :)

Anything else

Sure :)


This project uses the ruleset xml resources from PHPMD

Parts of the PHPCS ruleset documentation is based off of the source code comments from PHP_CodeSniffer

The respective license are attached in the LICENSE file.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.