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.
Package info
github.com/mojoness/PHPCompatibility
Type:phpcs-standard
pkg:composer/mojoness/phpcompatibility
1.0.0
2014-08-20 16:13 UTC
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-devsection of your composer.json file.
"require-dev": { "mojoness/phpcompatibility": "~1.0.0" },
- Run
composer updateto 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