PHPXref: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
m (13個修訂)
mNo edit summary
Line 11: Line 11:
== requirement ==
== requirement ==
# [http://phpxref.sourceforge.net/#download Download] PHPXref for MS Windows
# [http://phpxref.sourceforge.net/#download Download] PHPXref for MS Windows
# Download [http://www.indigostar.com/indigoperl.htm IndigoPerl], a binary distribution of Perl for Windows (not use the [http://www.apachefriends.org/en/xampp.html xampp] built-in perl or [http://tinyperl.sourceforge.net/ TinyPerl] 2.0 because they lack of some required perl modules .pm )
# Download [http://www.indigostar.com/indigoperl.htm IndigoPerl], a binary distribution of Perl for Windows or [http://www.apachefriends.org/en/xampp.html xampp] built-in perl (not [http://tinyperl.sourceforge.net/ TinyPerl] 2.0 because they lack of some required perl modules .pm )


== installation ==
== installation ==
Line 34: Line 34:


version:
version:
* PHPXref 0.7  
* PHPXref 0.7 + IndigoPerl V9.02 / Perl 5.10.0
* IndigoPerl V9.02 / Perl 5.10.0
* PHPXref 0.7 + XAMPP 1.7.2 / v5.10.0 built for MSWin32-x86-multi-thread




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

Revision as of 18:07, 9 July 2010

PHPXref - The PHP Cross Referencing Documentation Utility (demo) 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
  2. 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 )

installation

  1. Install the "IndigoPerl" to the default directory: c:\perl-5.10.0\ (perl.exe will be located to c:\perl-5.10.0\bin\perl.exe)
  2. Extract "PHPXref" to c:\PHPXref (or other directory you preferred)
  3. Modify the perl path of the file c:\PHPXref\phpxref.bat by means of text editor such as NotePad, Notepad++...
    C:\Perl\bin\perl phpxref.pl 
    to
    c:\perl-5.10.0\bin\perl.exe phpxref.pl 
  4. Copy the php_scripts you want to analyze to c:\PHPXref\source\php_scripts\

generation the cross reference report

  1. Execute the c:\PHPXref\phpxref.bat and wait some minutes...
  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 or see the demo


version:

  • 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