mayflower / php-codebrowser
一种代码浏览器,可以增强代码,提供来自各种QA工具的信息。
4.0.1
2024-03-19 22:19 UTC
Requires
- php: ^8.0
- ext-dom: *
- monolog/monolog: ~1.7||~2.0||~3.0
- phpunit/php-file-iterator: ~2.0||^3.0
- symfony/console: ~3.4||~4.0||~5.0||~6.0
Requires (Dev)
- humbug/box: ^3.13
- mayflower/mo4-coding-standard: ^9.0
- phploc/phploc: *
- phpmd/phpmd: 1.5.*||~2.6
- phpstan/extension-installer: ^1.2
- phpstan/phpstan: ^1.0
- phpstan/phpstan-phpunit: ^1.3
- phpstan/phpstan-strict-rules: ^1.5
- phpunit/phpunit: ^9.5
- sebastian/phpcpd: *
This package is not auto-updated.
Last update: 2024-09-14 13:57:29 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
通过Composer安装
将此行添加到composer.json中的require部分
"mayflower/php-codebrowser": "~1.1"
或者全局安装
composer global require "mayflower/php-codebrowser=~1.1"
获取PHAR
查看 发行版
使用方法
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
查看 Jenkins任务的标准化模板,了解PHP_CodeBrowser如何与Jenkins一起使用。
联系方式
如果您有任何问题,可以通过以下方式联系:Elger Thiele或Thorsten Rinne