Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

AtomLinter/linter-phpcs

Repository files navigation

linter-phpcs

Build Status Dependency Status apm apm

Description

This is a provider for Linter that provides an interface to PHP_CodeSniffer (PHPCS). It supports files that have the "PHP" and "HTML" syntax.

Installation

PHPCS Installation

Before using this plugin, you must ensure that phpcs is installed and available on your $PATH. To install phpcs, the following:

  1. Install PHP.

  2. Install Composer.

  3. Install phpcs by typing the following in a terminal:

    composer global require "squizlabs/php_codesniffer=*"

Full installation steps, including alternate installation methods, can be found on the PHPCS site here.

Package Installation

You can then install this package either from within Atom or by running the following command:

$ apm install linter-phpcs

Note: If you do not already have the Linter package installed it will be installed for you to provide an interface for this package. If you are using an alternative interface simply disable the Linter package.