mojoness/phpcompatibility

This package is abandoned and no longer maintained. The author suggests using the wimg/php-compatibility package instead.

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.

Installs: 16 892

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 22

Forks: 119

Type:phpcs-standard

1.0.0 2014-08-20 16:13 UTC

This package is not auto-updated.

Last update: 2019-02-20 18:09:11 UTC


README

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility. This repo is a fork of PhpCompatibility, maintained for the purpose of making installation through Composer easier.

Installation in Composer

  • Add the following lines to the require-dev section of your composer.json file.
"require-dev": {
   "mojoness/phpcompatibility": "~1.0.0"
},
  • Run composer update to install both phpcs and PHPCompatibility coding standard.
  • Use the coding standard with ./vendor/bin/phpcs --standard=PHPCompatibility

More information can be found on Wim Godden's blog.

License

This code is released under the GNU Lesser General Public License (LGPL). For more information, visit http://www.gnu.org/copyleft/lesser.html