2017 © Pedro Peláez
 

library joomla-cs

Composer installable Joomla Coding Standards Definitions.

image

greencape/joomla-cs

Composer installable Joomla Coding Standards Definitions.

  • Thursday, February 18, 2016
  • by GreenCape
  • Repository
  • 1 Watchers
  • 1 Stars
  • 11,404 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 98 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

GreenCape Coding Standards

This repository includes Coding Standard definitions for PHP CodeSniffer 2.x for use with Composer., (*1)

Currently, these Coding Standards are included:, (*2)

Requirements

Installation

Add this package to your requirements., (*3)

$ composer require --dev greencape/coding-standards:~1

The PHP CodeSniffer tool is installed automatically in a matching version., (*4)

You can verify a successful install with, (*5)

$ ./vendor/bin/phpcs -i
The installed coding standards are MySource, PSR2, Squiz, Zend, PHPCS, PSR1, PEAR, WordPress and Joomla

Running

You can use the installed Joomla standard like:, (*6)

$ ./vendor/bin/phpcs --standard=Joomla path/to/code
$ ./vendor/bin/phpcbf --standard=Joomla path/to/code

You can use the installed WordPress standard like:, (*7)

$ ./vendor/bin/phpcs --standard=WordPress path/to/code
$ ./vendor/bin/phpcbf --standard=WordPress path/to/code

In both cases, the second (phpcbf) line will fix some issues automatically. However, this part is work in progress, and will improve over time., (*8)

Contributing

If you want to contribute to this project, you can, (*9)

  • fork this repo, code, and send a Pull Request
  • file an issue in the Issue Tracker

The Versions

18/02 2016

dev-joomla-cs2

dev-joomla-cs2 http://joomla.github.io/coding-standards/

Composer installable Joomla Coding Standards Definitions.

  Sources   Download

GPL2+

The Requires

 

The Development Requires

phpcs joomla standards

14/11 2015

dev-master

9999999-dev https://github.com/GreenCape/coding-standards

Composer installable Coding Standards Definitions.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Niels Braczek

phpcs joomla standards

14/11 2015

1.0.1

1.0.1.0 https://github.com/GreenCape/coding-standards

Composer installable Coding Standards Definitions.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Niels Braczek

phpcs joomla standards

13/11 2015

1.0.0

1.0.0.0 https://github.com/GreenCape/coding-standards

Composer installable Coding Standards Definitions.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Niels Braczek

phpcs joomla standards

03/07 2015

0.2.0

0.2.0.0 https://github.com/GreenCape/coding-standards

Composer installable Coding Standards Definition.

  Sources   Download

MIT

The Requires

 

by Niels Braczek