PHP_CodeSniffer is a set of two PHP scripts; the main phpcs script that tokenizes PHP, JavaScript and CSS files to detect violations of a defined coding standard, and a second phpcbf script to automatically correct coding standard violations. PHP_CodeSniffer is an essential development tool that ensures your code remains clean and consistent. PHP_CodeSniffer requires PHP version 5.4.0 or greater, although individual sniffs may have additional requirements such as external applications and scripts. See the Configuration Options manual page for a list of these requirements. If you're using PHP_CodeSniffer as part of a team, or you're running it on a CI server, you may want to configure your project's settings using a configuration file. If you use PEAR, you can install PHP_CodeSniffer using the PEAR installer. This will make the phpcs and phpcbf commands immediately available for use.

Features

  • PHP_CodeSniffer is a set of two PHP scripts
  • The main phpcs script tokenizes PHP, JavaScript and CSS files to detect violations of a defined coding standard
  • A second phpcbf script automatically corrects coding standard violations
  • Multiple coding standards can be used within PHP_CodeSniffer
  • To check a file against the PEAR coding standard, simply specify the file's location
  • r, if you wish to check an entire directory, you can specify the directory location instead of a file

Project Activity

See All Activity >

License

BSD License

Follow PHP_CodeSniffer

PHP_CodeSniffer Web Site

nel_h2
Simply solve complex auth. Easy for devs to set up. Easy for non-devs to use. Icon
Simply solve complex auth. Easy for devs to set up. Easy for non-devs to use.

Transform user access with Frontegg CIAM: login box, SSO, MFA, multi-tenancy, and 99.99% uptime.

Custom auth drains 25% of dev time and risks 62% more breaches, stalling enterprise deals. Frontegg platform delivers a simple login box, seamless authentication (SSO, MFA, passwordless), robust multi-tenancy, and a customizable Admin Portal. Integrate fast with the React SDK, meet compliance needs, and focus on innovation.
Start for Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of PHP_CodeSniffer!

Additional Project Details

Operating Systems

Windows

Programming Language

PHP

Related Categories

PHP Source Code Analysis Tool, PHP Code Review Software

Registered

2021-07-07