ftven/cli-audit

审计CLI工具 (PHP QA)

dev-develop 2014-07-03 22:09 UTC

This package is not auto-updated.

Last update: 2024-09-10 01:59:28 UTC


README

Audit CLI是一个命令行工具(CLI),提供有用的命令来审计PHP项目的源代码。

安装

1/ Phar下载

您可以在http://...上下载Phar打包版本(待完善)

$ curl -sS -O http://.../audit.phar
$ sudo mv audit.phar /usr/local/bin/audit

2/ Git克隆

您可以直接克隆GitHub仓库

$ git clone git@github.com:francetv/php-cli-audit.git
$ cd php-cli-audit
$ composer.phar install
$ ./bin/audit package
$ sudo mv audit.phar /usr/local/bin/audit

用法

$ audit
$ audit -h
$ audit <command>

测试

您可以使用以下命令运行单元测试

$ cd php-cli-audit
$ composer.phar install
$ ./bin/phpunit --colors test

资源

Audit CLI