2017 © Pedro Peláez
 

phpcs-sniffs coding-standard

MediaCT PHP Coding Standard

image

mediact/coding-standard

MediaCT PHP Coding Standard

  • Thursday, June 7, 2018
  • by mediactbv
  • Repository
  • 3 Watchers
  • 0 Stars
  • 2,352 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 33 Versions
  • 41 % Grown

The README.md

[ABANDONED] Introduction

Scrutinizer Code Quality This is the MediaCT coding standard, it contains rule sets for PHPCS and PHPMD., (*1)

Installation

Use composer to install the coding standard in the home directory., (*2)

composer global require mediact/coding-standard

Configuring PHPStorm to use the coding standard.

First configure PHPStorm to use the right phpcs command., (*3)

Go to Settings > Languages & Frameworks > PHP > Code Sniffer. Choose "Local" for the path and fill in the full path to ~/.config/composer/vendor/bin/phpcs, (*4)

Then go to Settings > Editor > Inspections and search for PHP Code Sniffer Validation. Select Custom and the add the path to ~/.config/composer/vendor/mediact/coding-standard/src/MediaCT, (*5)

Using the coding standard in a project

To use the standard in a project the standard needs to be required in composer., (*6)

cd <project_directory>
composer require mediact/coding-standard --dev

This will add the coding standard to the vendor directory of the project., (*7)

To let phpcs use the coding standard add a file phpcs.xml to the root of the project., (*8)

<?xml version="1.0"?>
<ruleset>
    <rule ref="./vendor/mediact/coding-standard/src/MediaCT"/>
</ruleset>

The standard can be checked from the command line by going to the directory., (*9)

cd <project_directory>
./vendor/bin/phpcs ./src

Configuring PHP CodeSniffer to also show less severe messages

By default PHP CodeSniffer shows only messages with a severity higher than 5. The MediaCT coding standard also has some messages with a lower severity. These are messages that encourage a better way of coding but should not block a pull request., (*10)

To configure phpcs to show also these messages execute the following command., (*11)

~/.config/composer/vendor/bin/phpcs --config-set severity 1

The Versions

07/06 2018

dev-master

9999999-dev

MediaCT PHP Coding Standard

  Sources   Download

MIT

The Requires

 

The Development Requires

by MediaCT

07/06 2018

2.0.3

2.0.3.0

MediaCT PHP Coding Standard

  Sources   Download

MIT

The Requires

 

The Development Requires

by MediaCT

07/06 2018

2.0.2

2.0.2.0

MediaCT PHP Coding Standard

  Sources   Download

MIT

The Requires

 

The Development Requires

by MediaCT

08/11 2017

2.0.1

2.0.1.0

MediaCT PHP Coding Standard

  Sources   Download

MIT

The Requires

 

The Development Requires

by MediaCT

02/11 2017

2.0.0

2.0.0.0

MediaCT PHP Coding Standard

  Sources   Download

MIT

The Requires

 

by MediaCT

02/11 2017

dev-feature/PD-653

dev-feature/PD-653

MediaCT PHP Coding Standard

  Sources   Download

MIT

The Requires

 

by MediaCT

31/08 2017

dev-feature/lisence

dev-feature/lisence https://bitbucket.org/mediactbv/coding-standard

MediaCT PHP Coding Standard

  Sources   Download

MIT

The Requires

 

by MediaCT

03/03 2017

1.7.1

1.7.1.0 https://bitbucket.org/mediactbv/coding-standard

MediaCT PHP Coding Standard

  Sources   Download

proprietary

The Requires

 

by MediaCT

03/02 2017

1.7.0

1.7.0.0 https://bitbucket.org/mediactbv/coding-standard

MediaCT PHP Coding Standard

  Sources   Download

proprietary

The Requires

 

by MediaCT

17/01 2017

1.6.3

1.6.3.0 https://bitbucket.org/mediactbv/coding-standard

MediaCT PHP Coding Standard

  Sources   Download

proprietary

The Requires

 

by MediaCT

11/01 2017

1.6.2

1.6.2.0 https://bitbucket.org/mediactbv/coding-standard

MediaCT PHP Coding Standard

  Sources   Download

proprietary

The Requires

 

by MediaCT

11/01 2017

1.6.1

1.6.1.0 https://bitbucket.org/mediactbv/coding-standard

MediaCT PHP Coding Standard

  Sources   Download

proprietary

The Requires

 

by MediaCT

03/01 2017

1.6.0

1.6.0.0 https://bitbucket.org/mediactbv/coding-standard

MediaCT PHP Coding Standard

  Sources   Download

proprietary

The Requires

 

by MediaCT

21/12 2016

1.5.0

1.5.0.0 https://bitbucket.org/mediactbv/coding-standard

MediaCT PHP Coding Standard

  Sources   Download

proprietary

The Requires

 

by MediaCT

12/10 2016

1.4.1

1.4.1.0 https://bitbucket.org/mediactbv/coding-standard

MediaCT PHP Coding Standard

  Sources   Download

proprietary

The Requires

 

by MediaCT

19/09 2016

1.4.0

1.4.0.0 https://bitbucket.org/mediactbv/coding-standard

MediaCT PHP Coding Standard

  Sources   Download

proprietary

The Requires

 

by MediaCT

19/07 2016

1.3.9

1.3.9.0 https://bitbucket.org/mediactbv/coding-standard

MediaCT PHP Coding Standard

  Sources   Download

proprietary

The Requires

 

by MediaCT

07/07 2016

1.3.8

1.3.8.0 https://bitbucket.org/mediactbv/coding-standard

MediaCT PHP Coding Standard

  Sources   Download

proprietary

The Requires

 

by MediaCT

07/07 2016

1.3.7

1.3.7.0 https://bitbucket.org/mediactbv/coding-standard

MediaCT PHP Coding Standard

  Sources   Download

proprietary

The Requires

 

by MediaCT

29/06 2016

1.3.6

1.3.6.0 https://bitbucket.org/mediactbv/coding-standard

MediaCT PHP Coding Standard

  Sources   Download

proprietary

The Requires

 

by MediaCT

29/06 2016

1.3.5

1.3.5.0 https://bitbucket.org/mediactbv/coding-standard

MediaCT PHP Coding Standard

  Sources   Download

proprietary

The Requires

 

by MediaCT

14/06 2016

1.3.4

1.3.4.0 https://bitbucket.org/mediactbv/coding-standard

MediaCT PHP Coding Standard

  Sources   Download

proprietary

The Requires

 

by MediaCT

10/06 2016

1.3.3

1.3.3.0 https://bitbucket.org/mediactbv/coding-standard

MediaCT PHP Coding Standard

  Sources   Download

proprietary

The Requires

 

by MediaCT

09/06 2016

1.3.2

1.3.2.0 https://bitbucket.org/mediactbv/coding-standard

MediaCT PHP Coding Standard

  Sources   Download

proprietary

The Requires

 

by MediaCT

08/06 2016

1.3.1

1.3.1.0 https://bitbucket.org/mediactbv/coding-standard

MediaCT PHP Coding Standard

  Sources   Download

proprietary

The Requires

 

by MediaCT

01/06 2016

1.3.0

1.3.0.0 https://bitbucket.org/mediactbv/coding-standard

MediaCT PHP Coding Standard

  Sources   Download

proprietary

The Requires

 

by MediaCT

30/05 2016

1.2.1

1.2.1.0 https://bitbucket.org/mediactbv/coding-standard

MediaCT PHP Coding Standard

  Sources   Download

proprietary

The Requires

 

by MediaCT

28/04 2016

1.2.0

1.2.0.0 https://bitbucket.org/mediactbv/coding-standard

MediaCT PHP Coding Standard

  Sources   Download

proprietary

The Requires

 

by MediaCT

28/04 2016

1.1.0

1.1.0.0 https://bitbucket.org/mediactbv/coding-standard

MediaCT PHP Coding Standard

  Sources   Download

proprietary

The Requires

 

by MediaCT

22/04 2016

1.0.0

1.0.0.0 https://bitbucket.org/mediactbv/coding-standard

MediaCT PHP Coding Standard

  Sources   Download

proprietary

The Requires

 

by MediaCT