itmh / php-buddy
php代码分析和测试的必要工具包
v1.0.1
2016-07-05 06:02 UTC
Requires
- itmh/coding-standard-php: 1.0.*
- itmh/cyclophp: ^1.0
- jakub-onderka/php-parallel-lint: ^0.9.2
- mayflower/php-codebrowser: ^1.1
- pdepend/pdepend: ^2.2
- phing/phing: ^2.13
- phploc/phploc: ^3.0
- phpmd/phpmd: ^2.3
- phpunit/phpunit: ^5.2
- sebastian/phpcpd: ^2.0
- squizlabs/php_codesniffer: ^2.5
This package is not auto-updated.
Last update: 2024-09-14 19:14:41 UTC
README
php代码分析和测试的必要工具包
包含以下内容
- https://github.com/phingofficial/phing
- https://github.com/sebastianbergmann/phpunit
- https://github.com/JakubOnderka/PHP-Parallel-Lint
- https://github.com/phpmd/phpmd
- https://github.com/pdepend/pdepend
- https://github.com/sebastianbergmann/phploc
- https://github.com/sebastianbergmann/phpcpd
- https://github.com/squizlabs/PHP_CodeSniffer
- https://github.com/itmh/coding-standard-php
- https://github.com/itmh/cyclophp
- https://github.com/mayflower/PHP_CodeBrowser
安装
安装包后,请将文件 build.xml.example 复制到项目根目录,并根据需要配置。还需要在您的 composer.json 中添加 scripts 部分
"scripts": {
"build": "./vendor/bin/phing build",
"build:strict": "BUILD_STRICT=1 ./vendor/bin/phing build",
"test": "./vendor/bin/phing test"
}
并添加git push的钩子
cat > .git/hooks/pre-push << EOF #!/bin/sh composer build:strict EOF
并确保它有执行权限
chmod +x .git/hooks/pre-push