PHPXref: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
Line 30: Line 30:


== generation the cross reference report ==
== generation the cross reference report ==
# Execute the c:\PHPXref\phpxref.exe and wait some minutes...
# Execute the following command and wait some minutes...
#* {{Win}}: {{kbd | key=c:\PHPXref\phpxref.exe}}
#* {{Mac}}/{{Linux}}: {{kbd | key=perl phpxref.pl}}
# Example of summary statistics  
# Example of summary statistics  
<pre> Files Scanned: 1284 containing 669767 lines
<pre> Files Scanned: 1284 containing 669767 lines
Line 44: Line 46:


version:
version:
* PHPXref 0.7 + IndigoPerl V9.02 / Perl 5.10.0
* {{Win}} PHPXref 0.7 + IndigoPerl V9.02 / Perl 5.10.0
* PHPXref 0.7 + XAMPP 1.7.2 / v5.10.0 built for MSWin32-x86-multi-thread
* {{Win}} PHPXref 0.7 + XAMPP 1.7.2 / v5.10.0 built for MSWin32-x86-multi-thread
 
* {{Mac}} PHPXref 0.7.1 + perl 5, version 18, subversion 2 (v5.18.2) built for darwin-thread-multi-2level


[[Category:PHP]] [[Category:Programming]] [[Category:Software]]
[[Category:PHP]] [[Category:Programming]] [[Category:Software]]

Revision as of 18:39, 8 February 2016

PHPXref - The PHP Cross Referencing Documentation Utility analyzing the following items of PHP scripts:

  • Variable references
  • Function references
  • Class references
  • Constant references


Using PHPXref on MS Windows


requirement

  1. Download PHPXref for MS Windows Win Os windows.png / macOS icon_os_mac.png / Linux Os linux.png
  2. install perl if not installed
    • Win Os windows.png Download IndigoPerl, a binary distribution of Perl for Windows or xampp built-in perl (not TinyPerl 2.0 because they lack of some required perl modules .pm )
    • Verify the perl was installed: perl -v

installation

  1. (optional) Install the "IndigoPerl" to the default directory: c:\usr\ (perl.exe will be located to c:\usr\bin\perl.exe )
  2. Extract "PHPXref" to c:\PHPXref (or other directory you preferred)
  3. Set the source php scripts where you want to analysis
    • Modify the configuration file phpxref.cfg where the source php scripts located OR copy the php_scripts you want to analyze to c:\PHPXref\source\php_scripts\
SOURCE=c:\PHPXref\source\php_scripts\
# Character set to specify for generated HTML
# CHARSET=iso-8859-1
CHARSET=utf-8

generation the cross reference report

  1. Execute the following command and wait some minutes...
    • Win Os windows.png : c:\PHPXref\phpxref.exe
    • macOS icon_os_mac.png /Linux Os linux.png : perl phpxref.pl
  2. Example of summary statistics
	Files Scanned: 1284 containing 669767 lines
	7640 variable names in 24339 definitions and 238971 references.
	5102 function/method names in 7711 definitions and 44215 references.
	288 constant names in 317 definitions and 6332 references.
	688 class names in 696 definitions and 5925 references.
	0 table names in 0 references.

Browse the generated report: file://c:/PHPXref/output/index.html


version:

  • Win Os windows.png PHPXref 0.7 + IndigoPerl V9.02 / Perl 5.10.0
  • Win Os windows.png PHPXref 0.7 + XAMPP 1.7.2 / v5.10.0 built for MSWin32-x86-multi-thread
  • macOS icon_os_mac.png PHPXref 0.7.1 + perl 5, version 18, subversion 2 (v5.18.2) built for darwin-thread-multi-2level