Wednesday, August 31, 2022

[FIXED] How to check PHP code against a specific set of coding conventions?

Issue

I have a PHP library that I'm planning to submit to the PEAR database. In order to do this, the library needs to follow the PEAR Coding Standards.

Is there a tool that can check my code to make sure it follows the standards completely?


Solution

http://pear.php.net/manual/en/package.php.php-codesniffer.php

By default, PHP_CodeSniffer will use the PEAR coding standard if no standard is supplied on the command line.



Answered By - B00MER
Answer Checked By - Senaida (PHPFixing Volunteer)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.