2017 © Pedro PelĂĄez
 

phpcodesniffer-standard codingstandard

This is my coding standard adapted from sparhandy/codingstandard.

image

philippwitzmann/codingstandard

This is my coding standard adapted from sparhandy/codingstandard.

  • Tuesday, July 24, 2018
  • by PhilippWitzmann
  • Repository
  • 0 Watchers
  • 0 Stars
  • 53 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 15 Versions
  • 0 % Grown

The README.md

Build Status Github Releases Release Packagist, (*1)

Coding Standard

This repository contains all necessary files to configure PHP Code Sniffer and PHP Mess Detector., (*2)

Installation with composer

For now you have to use the dev-master version., (*3)

composer require "philippwitzmann/codingstandard" "~2"

Usage

From Terminal (Cli)

PHP Code Sniffer

To execute PHP Code Sniffer do the following., (*4)

./vendor/bin/phpcs --extensions=php --standard=./vendor/philippwitzmann/codingstandard/src/phpcs/Production/ruleset.xml ./path/to ./your/sources 

PHP Mess Detector

To execute PHP Mess Detector do the following., (*5)

./vendor/bin/phpmd ./path/to ./your/sources text ./vendor/philippwitzmann/codingstandard/src/phpmd/phpmd.xml --suffixes php

PHPStan

To execute PHPStan do the following., (*6)

./vendor/bin/phpstan analyse ./path/to ./your/sources

Travis-CI configuration

For use in your Travis-Ci configuration file just adapt the following example and save it to .travis.yml in your root directory., (*7)

language: php

php:
  - 5.4
  - 5.5
  - 5.6
  - 7.0

matrix:
  allow_failures:
    - php: 7.0

before_script:
  - composer self-update

install: travis_retry composer update

script:
  - ./vendor/bin/phpmd ./path/to ./your/sources text ./configuration/phpmd/phpmd.xml --suffixes php
  - ./vendor/bin/phpcs --extensions=php --standard=./configuration/phpcs/Production/ruleset.xml ./path/to ./your/sources

How to contribute

If you want to contribute to the standard here is how it works., (*8)

  • Create a fork of PhilippWitzmann/CodingStandard.
  • Create your branch from master and commit your changes.
  • Push your branch to your fork.
  • Create a pull request on GitHub.
  • Discuss your pull request with us.
  • Our devs will then merge or close the pull request.

Acknowledgements

This would not be possible without the tremendous work of the good people at PHP Code Sniffer and PHP Mess Detector and of course the authors annotated in the source files. Also check out the original version of this standard over at the amazing people from Sparhandy, (*9)

The Versions

24/07 2018

dev-master

9999999-dev https://github.com/PhilippWitzmann/CodingStandard

This is my coding standard adapted from sparhandy/codingstandard.

  Sources   Download

BSD-3-Clause

The Requires

 

by Philipp Witzmann

phpcs standards

24/07 2018

2.2.10

2.2.10.0 https://github.com/PhilippWitzmann/CodingStandard

This is my coding standard adapted from sparhandy/codingstandard.

  Sources   Download

BSD-3-Clause

The Requires

 

by Philipp Witzmann

phpcs standards

23/07 2018

2.2.9

2.2.9.0 https://github.com/PhilippWitzmann/CodingStandard

This is my coding standard adapted from sparhandy/codingstandard.

  Sources   Download

BSD-3-Clause

The Requires

 

by Philipp Witzmann

phpcs standards

23/07 2018

2.2.8

2.2.8.0 https://github.com/PhilippWitzmann/CodingStandard

This is my coding standard adapted from sparhandy/codingstandard.

  Sources   Download

BSD-3-Clause

The Requires

 

by Philipp Witzmann

phpcs standards

23/07 2018

2.2.7

2.2.7.0 https://github.com/PhilippWitzmann/CodingStandard

This is my coding standard adapted from sparhandy/codingstandard.

  Sources   Download

BSD-3-Clause

The Requires

 

by Philipp Witzmann

phpcs standards

23/07 2018

2.2.6

2.2.6.0 https://github.com/PhilippWitzmann/CodingStandard

This is my coding standard adapted from sparhandy/codingstandard.

  Sources   Download

BSD-3-Clause

The Requires

 

by Philipp Witzmann

phpcs standards

23/07 2018

2.2.5

2.2.5.0 https://github.com/PhilippWitzmann/CodingStandard

This is my coding standard adapted from sparhandy/codingstandard.

  Sources   Download

BSD-3-Clause

The Requires

 

by Philipp Witzmann

phpcs standards

23/07 2018

2.2.4

2.2.4.0 https://github.com/PhilippWitzmann/CodingStandard

This is my coding standard adapted from sparhandy/codingstandard.

  Sources   Download

BSD-3-Clause

The Requires

 

by Philipp Witzmann

phpcs standards

23/07 2018

2.2.3

2.2.3.0 https://github.com/PhilippWitzmann/CodingStandard

This is my coding standard adapted from sparhandy/codingstandard.

  Sources   Download

BSD-3-Clause

The Requires

 

by Philipp Witzmann

phpcs standards

23/07 2018

2.2.2

2.2.2.0 https://github.com/PhilippWitzmann/CodingStandard

This is my coding standard adapted from sparhandy/codingstandard.

  Sources   Download

BSD-3-Clause

The Requires

 

by Philipp Witzmann

phpcs standards

23/07 2018

2.2.1

2.2.1.0 https://github.com/PhilippWitzmann/CodingStandard

This is my coding standard adapted from sparhandy/codingstandard.

  Sources   Download

BSD-3-Clause

The Requires

 

by Philipp Witzmann

phpcs standards

23/07 2018

2.2

2.2.0.0 https://github.com/PhilippWitzmann/CodingStandard

This is my coding standard adapted from sparhandy/codingstandard.

  Sources   Download

BSD-3-Clause

The Requires

 

by Philipp Witzmann

phpcs standards

19/07 2018

2.1

2.1.0.0 https://github.com/PhilippWitzmann/CodingStandard

This is my coding standard adapted from sparhandy/codingstandard.

  Sources   Download

BSD-3-Clause

The Requires

 

by Philipp Witzmann

phpcs standards

19/07 2018

2.1.1

2.1.1.0 https://github.com/PhilippWitzmann/CodingStandard

This is my coding standard adapted from sparhandy/codingstandard.

  Sources   Download

BSD-3-Clause

The Requires

 

by Philipp Witzmann

phpcs standards

18/07 2018

2.0.2

2.0.2.0 https://github.com/PhilippWitzmann/CodingStandard

This is my coding standard adapted from sparhandy/codingstandard.

  Sources   Download

BSD-3-Clause

The Requires

 

by Philipp Witzmann

phpcs standards