covex-nn / phpcb
1.0.4.1
2013-11-12 21:58 UTC
Requires
- phpunit/php-file-iterator: ~1.3
- symfony/console: >=2.2.0
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2019-02-20 17:26:51 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检出
$ git clone git://github.com/Mayflower/PHP_CodeBrowser.git
使用PEAR安装器安装
$ pear channel-discover pear.phpqatools.org
$ pear install --alldeps phpqatools/PHP_CodeBrowser
使用方法
Shell使用方法
Try ./bin/phpcb.php -h for usage information.
Jenkins、CruiseControl和Hudson集成
...
<!-- 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>
Jenkins/Hudson
查看PHP项目Jenkins作业的标准模板,了解如何与Jenkins一起使用PHP_CodeBrowser。
联系方式
如果您有任何问题,可以联系:Elger Thiele或Thorsten Rinne。