zerkalica / php-code-browser
此包最新版本(dev-master)的许可证信息不可用。
PHP_CodeBrowser的非官方版本,需要用Composer处理
dev-master
2012-08-26 11:50 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-09-14 14:14:16 UTC
README
结构
|--> bin/ PHP_CodeBrowser scripts
|--> src/ Source files for PHP_CodeBrowser
| |--> Plugins/ Plugins for different error handling/types
|
|--> templates/ Template files for PHP_CodeBrowser
| |--> css/ Used CSS by templates, Color definition for errors
| |--> img/ Used images for PHP_CodeBrowser
| |--> js/ Used javascript for PHP_CodeBrowser
|
|--> tests/ PHPUnit test suite
|
|--> package.xml PEAR package information file
|
|--> LICENCE Licence information
|--> README Structure and install information
|--> CHANGELOG Update information
安装
Git Checkout
$ git clone git://github.com/mayflowergmbh/PHP_CodeBrowser.git
使用PEAR安装程序安装
$ pear config-set preferred_state alpha
$ pear channel-discover pear.phpunit.de
$ pear install --alldeps phpunit/PHP_CodeBrowser
使用方法
Shell使用
Usage: phpcb(.php|.bat) --log <dir> --output <dir> [--source <dir>]
--log Path to xml log files, e.g. generated by phpunit
--output Path to output directory (must differ from source directory)
--source (opt) Path to project source
如果使用了可选的 --source
参数,则会解析指定的目标目录。日志文件中的错误将被合并到目标目录的解析文件列表中。
否则,只会解析错误日志中的文件。
CruiseControl集成
...
<!-- phpcb should be called after xml file generation -->
<target name="build" depends="...,phpcb" />
...
<target name="phpcb">
<exec executable="phpcb">
<arg line="--log path/to/log/dir
--output path/to/output/dir/
--source path/to/source/dir/" />
</exec>
</target>
...
查看结果
网页浏览器
打开 /path/to/defined/output/index.html
。
CruiseControl
config.xml
<publishers>
<artifactspublisher dir="path/to/output" dest="artifacts/${project.name}" subdirectory="PhpCbIdentifier" />
...
</publishers>
main.jsp
<cruisecontrol:tab name="PHP_CodeBrowser" label="PHP_CodeBrowser">
<cruisecontrol:artifactsLink>
<iframe src="<%=request.getContextPath() %>/<%= artifacts_url %>/PhpCbIdentifier/index.html" class="tab-content">
</iframe>
</cruisecontrol:artifactsLink>
</cruisecontrol:tab>
联系方式
如果您有任何问题,可以通过以下方式联系:Elger Thiele elger.thiele@mayflower.de