定制 jolicode/php7-checker 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jolicode/php7-checker

Composer 安装命令:

composer require jolicode/php7-checker

包简介

Detect parts of your code that should be updated to be PHP7 compatible

README 文档

README

This project is now deprecated in favor of php7cc.

php7-checker is a PHP library that parses your code and statically detects some errors that could prevent it to run on PHP7.

Disclamer: this tool is a static analyzer. As it doesn't run your code it's far from being 100% reliable. If you need to ensure that some code will run on PHP 7, nothing will do a better job than a complete test suite run on the targeted version of PHP. If you want to test it locally (f.e. because your code is not open source), you can still have a look to JoliCi.

Installation

Globally (Composer)

To install php7-checker, install Composer and issue the following command:

./composer.phar global require jolicode/php7-checker

Then, make sure you have ~/.composer/vendor/bin in your PATH, and you're good to go:

export PATH="$PATH:$HOME/.composer/vendor/bin"

Usage

You can run the checker on a given file or directory:

php7-checker /path/to/dir
php7-checker /path/to/file

Further documentation

Discover more by reading the docs:

You can see the current and past versions using one of the following:

And finally some meta documentation:

Credits

License

php7-checker is licensed under the MIT License - see the LICENSE file for details.

统计信息

  • 总下载量: 35
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 20
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 19
  • Watchers: 23
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-14