PHPXref: Difference between revisions

Jump to navigation Jump to search
592 bytes added ,  8 February 2016
no edit summary
No edit summary
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[http://phpxref.sourceforge.net/ PHPXref - The PHP Cross Referencing Documentation Utility] ([http://xref.moodle.org/nav.html?index.html demo])
[http://phpxref.sourceforge.net/ PHPXref - The PHP Cross Referencing Documentation Utility] analyzing the following items of PHP scripts:
 
* Variable references
Using PHPXref on MS Windows
* Function references
* Class references
* Constant references


== requirement ==
== requirement ==
# [http://phpxref.sourceforge.net/#download Download] PHPXref for MS Windows
# [http://phpxref.sourceforge.net/#download Download] PHPXref for MS Windows {{Win}} / {{Mac}} / {{Linux}}
# 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 perl modules .pm )
# install the perl if perl was not installed
#* {{Win}} 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 )
#* Verify the perl was installed: {{kbd | key = perl -v}}


== installation ==
== installation ==
# 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)
# (optional) Install the "IndigoPerl" to the default directory: c:\usr\  (perl.exe will be located to c:\usr\bin\perl.exe )
# Extract "PHPXref" to c:\PHPXref (or other directory you preferred)
# Extract "PHPXref" to c:\PHPXref (or other directory you preferred)
# Modify the perl path of the file c:\PHPXref\phpxref.bat <pre>C:\Perl\bin\perl phpxref.pl </pre> to <pre>c:\perl-5.10.0\bin\perl.exe </pre>
# Set the source php scripts where you want to analysis
# Copy the ''php_scripts'' you want to analyze to c:\PHPXref\source\''php_scripts\''
#* 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\''
 
<pre>
# Character set to specify for generated HTML
# CHARSET=iso-8859-1
CHARSET=utf-8
</pre>


== generation the cross reference report ==
== generation the cross reference report ==
# Execute the c:\PHPXref\phpxref.bat and wait some minutes...
# Execute the following command and wait some minutes...
# Browse the generated report: file://c:\PHPXref\output/index.html
#* {{Win}}: {{kbd | key=c:\PHPXref\phpxref.exe}}
# Part of the report was as follows:
#* {{Mac}}/{{Linux}}: {{kbd | key=perl phpxref.pl}}
<pre>
# Example of summary statistics
Summary statistics:
<pre> Files Scanned: 1284 containing 669767 lines
Files Scanned: 1284 containing 669767 lines
7640 variable names in 24339 definitions and 238971 references.
7640 variable names in 24339 definitions and 238971 references.
5102 function/method names in 7711 definitions and 44215 references.
5102 function/method names in 7711 definitions and 44215 references.
Line 26: Line 37:
0 table names in 0 references.
0 table names in 0 references.
</pre>
</pre>
Browse the generated report: file://c:/PHPXref/output/index.html


version:
version:
* PHPXref 0.7  
* {{Win}} PHPXref 0.7 + IndigoPerl V9.02 / Perl 5.10.0
* IndigoPerl V9.02 / Perl 5.10.0
* {{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]]

Navigation menu