Skip to content

using php_codesniffer and php-compatibility to check project compatibility

Notifications You must be signed in to change notification settings

stern-hcg/php-version-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

###使用方法

1. git clone 

2. composer install 

3. ./vendor/bin/phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility

4. usage example

-  using PHPCompatibility to check current directioy project 
./vendor/bin/phpcs -p . --standard=PHPCompatibility

-  using PHPCompatibility and PHPCompatibilitySymfonyPolyfillPHP72  to check current directioy project 
./vendor/bin/phpcs -p . --standard=PHPCompatibility,PHPCompatibilitySymfonyPolyfillPHP72 

-  using PHPCompatibility to check target project 7.0-7.2 compatibility and report to check_report.log
./vendor/bin/phpcs --standard=PHPCompatibility --runtime-set testVersion 7.0-7.2  /Users/Admin/Documents/projects/trade_center >> ./check_report.log


About

using php_codesniffer and php-compatibility to check project compatibility

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published