Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bigbite/phpcs-config

Big Bite's PHP Coding Standards.
https://github.com/bigbite/phpcs-config

coding-conventions php-codesniffer ruleset

Last synced: 6 days ago
JSON representation

Big Bite's PHP Coding Standards.

Awesome Lists containing this project

README

        

# BigBite PHPCS Configuration

This package contains the PHPCS configuration [Big Bite](https://bigbite.net) use for all projects.
It is primarily based upon [WPCS](https://github.com/WordPress/WordPress-Coding-Standards) and [VIP WPCS](https://github.com/Automattic/VIP-Coding-Standards), but is more strict, and contains additional Sniffs not included by those standards.

## Installation

Run the following command in terminal:
```bash
composer require --dev bigbite/phpcs-config
```

Then run:
```bash
$ composer update
```

Create a `.phpcs.xml.dist` file in your project and add the following, replacing {PROJECT} with your project name:

```xml

```

Alternatively, you can install the standard globally:
```bash
composer global require --dev bigbite/phpcs-config
```

And reference the standard directly within your `.phpcs.xml.dist`:
```xml

```

## Developing

Please note that the PHPUnit test suite is not yet compatible with PHP 8.*.

Clone this repository, and then run `composer install && composer install-cs`.
Please run the following command prior to creating a PR, and ensure that there are no errors:
- `composer run all-checks`

If you're feeling especially nice, you can run this command instead:
- `composer run all-checks-strict`