mojoness / phpcompatibility
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
Requires
- php: >=5.1.2
- ext-tokenizer: *
- goatherd/phpcs_installer: ~1.2
- squizlabs/php_codesniffer: >=1.5.1,<2.0
Requires (Dev)
- satooshi/php-coveralls: dev-master
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